i guess winget doesnt like silence
This commit is contained in:
parent
cf6f8194e4
commit
a1195beef0
3 changed files with 6 additions and 6 deletions
|
@ -122,7 +122,7 @@ const diff = (mix: MixFile, lock: MixLockFile) => {
|
|||
}
|
||||
|
||||
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) {
|
||||
console.error(`Error installing package ${id}@${version}:`, error);
|
||||
return;
|
||||
|
@ -143,7 +143,7 @@ const installPackage = 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) {
|
||||
console.error(`Error removing package ${id}@${version}:`, error);
|
||||
return;
|
||||
|
@ -158,6 +158,6 @@ const removePackage = async (lock: MixLockFile, id: string, version: string) =>
|
|||
console.warn(`Package ${id}@${version} not found in lock file.`);
|
||||
}
|
||||
|
||||
e && console.error(e);
|
||||
stderr && console.error(stderr);
|
||||
});
|
||||
}
|
2
index.ts
2
index.ts
|
@ -6,7 +6,7 @@ const program = new Command();
|
|||
program
|
||||
.name('mix')
|
||||
.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);
|
||||
program.parse();
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@grng/mix",
|
||||
"version": "0.0.8",
|
||||
"version": "0.0.9",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue