Nuxt/packages/cli/src/commands/usage.ts

16 lines
336 B
TypeScript
Raw Normal View History

2021-04-09 15:52:45 +00:00
import { cyan } from 'colorette'
import { commands } from './index'
export function invoke (_args) {
const sections: string[] = []
sections.push(`Usage: ${cyan(`nu ${Object.keys(commands).join('|')} [args]`)}`)
console.log(sections.join('\n\n') + '\n')
}
export const meta = {
usage: 'nu help',
description: 'Show help'
}