@caolinss/cli

1.7.1 • Public • Published

cl-cli

一个脚手架工具。启动命令:cl-cli

功能

Usage: cl-cli [options] [command]

This is a CLI to some JavaScript utilities

Options:
  -V, --version                    output the version number
  -h, --help                       display help for command

Commands:
  create|crt <project> [other...]  创建项目
  create-replace|crep              生成.replace.config{.json}配置文件
  replace|rep                      替换i18n文案
  help [command]                   display help for command

实现原理

基于 commander 实现

import { program } from 'commander';
import createCli from './create'
import replaceCli from './replace'
// import relationshipCli from './relationship'

program
  .name('cl-cli')
  .description('This is a CLI to some JavaScript utilities')
  .version('0.0.1');

createCli(program);
replaceCli(program);
// relationshipCli(program);

program.parse(process.argv);

Readme

Keywords

none

Package Sidebar

Install

npm i @caolinss/cli

Weekly Downloads

13

Version

1.7.1

License

ISC

Unpacked Size

85.7 kB

Total Files

30

Last publish

Collaborators

  • caolins