i guess winget doesnt like silence

This commit is contained in:
grngxd 2025-06-24 20:36:47 +01:00
parent cf6f8194e4
commit a1195beef0
3 changed files with 6 additions and 6 deletions

View file

@ -122,7 +122,7 @@ const diff = (mix: MixFile, lock: MixLockFile) => {
} }
const installPackage = async (lock: MixLockFile, id: string, version: string) => { const installPackage = async (lock: MixLockFile, id: string, version: string) => {
await exec(`winget install --id ${id} --version ${version} --exact --silent --force --disable-interactivity`, (error, _, e) => { await exec(`winget install --id ${id} --version ${version} --exact --force`, (error, _, e) => {
if (error) { if (error) {
console.error(`Error installing package ${id}@${version}:`, error); console.error(`Error installing package ${id}@${version}:`, error);
return; return;
@ -143,7 +143,7 @@ const installPackage = async (lock: MixLockFile, id: string, version: string) =>
}; };
const removePackage = async (lock: MixLockFile, id: string, version: string) => { const removePackage = async (lock: MixLockFile, id: string, version: string) => {
exec(`winget remove --id ${id} --version ${version} --silent`, (error, _, e) => { exec(`winget remove --id ${id} --version ${version}`, (error, _, stderr) => {
if (error) { if (error) {
console.error(`Error removing package ${id}@${version}:`, error); console.error(`Error removing package ${id}@${version}:`, error);
return; return;
@ -157,7 +157,7 @@ const removePackage = async (lock: MixLockFile, id: string, version: string) =>
} else { } else {
console.warn(`Package ${id}@${version} not found in lock file.`); console.warn(`Package ${id}@${version} not found in lock file.`);
} }
e && console.error(e); stderr && console.error(stderr);
}); });
} }

View file

@ -6,7 +6,7 @@ const program = new Command();
program program
.name('mix') .name('mix')
.description('a declerative file-based package manager for windows.') .description('a declerative file-based package manager for windows.')
.version('0.0.8', '-v, --version', 'output the current version'); .version('0.0.9', '-v, --version', 'output the current version');
registerCommands(program); registerCommands(program);
program.parse(); program.parse();

View file

@ -1,6 +1,6 @@
{ {
"name": "@grng/mix", "name": "@grng/mix",
"version": "0.0.8", "version": "0.0.9",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },