@contributionls/utils-cli
For utils client
Last updated 5 months ago by contributionls .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @contributionls/utils-cli 
SYNC missed versions from official npm registry.

@contributionls/utils-cli

For utils client, the npm package can instead of https://utils.men

oclif Version Downloads/week License

Usage

$ npm install -g @contributionls/utils-cli
$ utils-cli COMMAND
running command...
$ utils-cli (-v|--version|version)
@contributionls/utils-cli/0.0.1 darwin-x64 node-v10.17.0
$ utils-cli --help [COMMAND]
USAGE
  $ utils-cli COMMAND
...

Api

const {merge, template, jsonpath, convert} = require('@contributionls/utils-cli')
const url1 = merge(['https://google.com','https://hp.com'])
console.log('url1',url)

merge

merge(urls,sourceFileType)

  • sourceFileType, optional, specific the urls source file type, if not specific, it will auto detect the url's file type, value could be ini, yaml, json

template

template(url,template,sourceFileType)

  • sousourceFileTyperce, optional, specific the urls source file type, if not specific, it will auto detect the url's file type, value could be ini, yaml, json

convert

convert(url,destFileType,sourceFileType)

jsonpath

jsonpath(url,jsonpath,sourceFileType)

  • sourceFileType, optional, specific the urls source file type, if not specific, it will auto detect the url's file type, value could be ini, yaml, json

Commands

utils-cli convert

Convert config url type

USAGE
  $ utils-cli convert

OPTIONS
  -d, --dest=ini|yaml|json    (required) specific the url dest file type, value could be 'ini', 'yaml', 'json'

  -s, --source=ini|yaml|json  optional, specific the urls source file type, if not specific, it will auto detect the
                              url's file type, value could be 'ini', 'yaml', 'json'

  -u, --url=url               (required) need to convert url

DESCRIPTION
  ...
  Extra documentation goes here
  https://utils.men/

See code: src/commands/convert.js

utils-cli hello

Describe the command here

USAGE
  $ utils-cli hello

OPTIONS
  -n, --name=name  name to print

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/hello.js

utils-cli help [COMMAND]

display help for utils-cli

USAGE
  $ utils-cli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

utils-cli jsonpath

Jsonpath config url type

USAGE
  $ utils-cli jsonpath

OPTIONS
  -j, --jsonpath=jsonpath     (required) specific the jsonpath

  -s, --source=ini|yaml|json  optional, specific the urls source file type, if not specific, it will auto detect the
                              url's file type, value could be 'ini', 'yaml', 'json'

  -u, --url=url               (required) need to convert url

DESCRIPTION
  ...
  Extra documentation goes here
  https://utils.men/

See code: src/commands/jsonpath.js

utils-cli merge

Merge config url

USAGE
  $ utils-cli merge

OPTIONS
  -s, --source=ini|yaml|json  optional, specific the urls source file type, if not specific, it will auto detect the
                              url's file type, value could be 'ini', 'yaml', 'json'

  -u, --url=url               (required) need to merge url, you can pass this flag multiple

DESCRIPTION
  ...
  Extra documentation goes here
  https://utils.men/

See code: src/commands/merge.js

utils-cli template

Template config url type

USAGE
  $ utils-cli template

OPTIONS
  -s, --source=ini|yaml|json  optional, specific the urls source file type, if not specific, it will auto detect the
                              url's file type, value could be 'ini', 'yaml', 'json'

  -t, --template=template     (required) specific the template

  -u, --url=url               (required) need to convert url

DESCRIPTION
  ...
  Extra documentation goes here
  https://utils.men/

See code: src/commands/template.js

Current Tags

  • 0.0.1                                ...           latest (5 months ago)

1 Versions

  • 0.0.1                                ...           5 months ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |