@gaonengwww/tiny-toolkit-dev
Version:
tiny-cli 模块开发脚手架
16 lines (12 loc) • 455 B
text/typescript
import chalk from 'chalk';
import { cliConfig } from '@opentiny/cli-devkit';
export default function () {
const tool = cliConfig.getBinName();
const help = `
<%= pluginName %> Toolkit help info: ${tool} [command] [option]
$ ${tool} start # Start dev server
$ ${tool} build # build assets
$ ${tool} help # Review help info
`;
process.stdout.write(chalk.magenta(help));
}