mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 10:54:49 +00:00
16 lines
336 B
TypeScript
16 lines
336 B
TypeScript
|
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'
|
||
|
}
|