Make the output of the matugen command quiet in order to only output the colors. (#585)

This commit is contained in:
Jas Singh
2024-12-21 20:05:42 -08:00
committed by GitHub
parent 7111830e3c
commit 440d7ae9db

View File

@@ -31,7 +31,7 @@ export async function generateMatugenColors(): Promise<MatugenColors | undefined
const normalizedContrast = contrast.get() > 1 ? 1 : contrast.get() < -1 ? -1 : contrast.get(); const normalizedContrast = contrast.get() > 1 ? 1 : contrast.get() < -1 ? -1 : contrast.get();
const contents = await bash( const contents = await bash(
`matugen image ${wallpaperPath} -t scheme-${scheme_type.get()} --contrast ${normalizedContrast} --json hex`, `matugen image -q ${wallpaperPath} -t scheme-${scheme_type.get()} --contrast ${normalizedContrast} --json hex`,
); );
return JSON.parse(contents).colors[options.theme.matugen_settings.mode.get()]; return JSON.parse(contents).colors[options.theme.matugen_settings.mode.get()];