1.7.1 • Published 1 year ago

@caolinss/cli v1.7.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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);
1.7.1

1 year ago

1.6.2

1 year ago

1.7.0

1 year ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago