feat(update): enhance package manager detection, version reporting, and add verbose option
This commit is contained in:
@@ -7,15 +7,17 @@ export const run = async () => {
|
||||
toolsCli.standardCommand().subscribe(async (argvArg) => {
|
||||
console.log('@git.zone/tools - CLI utility for managing @git.zone packages\n');
|
||||
console.log('Commands:');
|
||||
console.log(' update Check and update globally installed @git.zone packages');
|
||||
console.log(' update -y Update without confirmation prompt');
|
||||
console.log(' update Check and update globally installed @git.zone packages');
|
||||
console.log(' update -y Update without confirmation prompt');
|
||||
console.log(' update --verbose Show detection diagnostics');
|
||||
console.log('');
|
||||
console.log('Use "gtools <command> --help" for more information about a command.');
|
||||
});
|
||||
|
||||
toolsCli.addCommand('update').subscribe(async (argvArg) => {
|
||||
const yesFlag = argvArg.y === true || argvArg.yes === true;
|
||||
await modUpdate.run({ yes: yesFlag });
|
||||
const verboseFlag = argvArg.v === true || argvArg.verbose === true;
|
||||
await modUpdate.run({ yes: yesFlag, verbose: verboseFlag });
|
||||
});
|
||||
|
||||
toolsCli.addVersion('3.0.0');
|
||||
|
||||
Reference in New Issue
Block a user