@gaonengwww/tiny-toolkit-dev
Version:
tiny-cli 模块开发脚手架
15 lines (11 loc) • 415 B
text/typescript
import chalk from 'chalk';
import { cliConfig } from '@opentiny/cli-devkit';
export default function () {
const tool = cliConfig.getBinName();
const help = `
<%=pluginName%> Plugin help info:
$ ${tool} <%= pluginShortName %> go # The first command
$ ${tool} <%= pluginShortName %> help # Review help info
`;
process.stdout.write(chalk.magenta(help));
}