feat(update): enhance package manager detection, version reporting, and add verbose option

This commit is contained in:
2026-02-05 23:13:43 +00:00
parent d53e8fec6d
commit f495f85bdb
5 changed files with 152 additions and 17 deletions

View File

@@ -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');