Skip to content

Commit

Permalink
feat: make -h show ni -v suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimava committed Sep 11, 2023
1 parent 5959416 commit 4ff6f40
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,14 @@ export async function run(fn: Runner, args: string[], options: DetectOptions = {
if (args.length === 1 && ['-h', '--help'].includes(args[0])) {
const dash = c.dim('-')
console.log(c.green(c.bold('@antfu/ni')) + c.dim(` use the right package manager v${version}\n`))
console.log(`ni ${dash} install`)
console.log(`nr ${dash} run`)
console.log(`nlx ${dash} execute`)
console.log(`nu ${dash} upgrade`)
console.log(`nun ${dash} uninstall`)
console.log(`nci ${dash} clean install`)
console.log(`na ${dash} agent alias`)
console.log(`ni ${dash} install`)
console.log(`nr ${dash} run`)
console.log(`nlx ${dash} execute`)
console.log(`nu ${dash} upgrade`)
console.log(`nun ${dash} uninstall`)
console.log(`nci ${dash} clean install`)
console.log(`na ${dash} agent alias`)
console.log(`ni -v ${dash} show used agent`)
console.log(c.yellow('\ncheck https://github.com/antfu/ni for more documentation.'))
return
}
Expand Down

0 comments on commit 4ff6f40

Please sign in to comment.