0.0.7 • Published 1 year ago

@car_han/cli v0.0.7

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

CLI

build 🔨

Install npm i -g @car_han/cli

🚀launch

Usage: thx-cli [options] [command]

CLI to handle some os things quickly.

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

Commands:
  build [options]      build fs and so on.
  help [command]       display help for command

build

fs (file system)
Usage
  1. build
  • thx build --fs "F#foo>ts#test+(F#bar>ts#test) in ./"
  • thx build
    > Enter file system by emmet: F#foo>ts#test+(F#bar>ts#test)+(F#aaa>ts#test) in ./
    |--foo/
      |--test.ts
      |--bar/
        |--test.ts
      |--aaa/
        |--test.ts
    have to be aware of is:
  • use "#" to set the name of your file|folder
  • use ">" to set your sub file|folder
  • use "in" to set gen target root path, default is "./"
  1. parse
  • Parse the target folder
thx build --fsp ./foo
return F#foo>(F#aaa>ts#test)+(F#bar>ts#test)+ts#test

Not finished yet, stay tuned.