@scale-codec/namespace-codegen-cli

0.1.0 • Public • Published

@scale-codec/namespace-codegen-cli

CLI for @scale-codec/namespace-codegen.

Install

npm i --save-dev @scale-codec/namespace-codegen-cli

Usage (after installation)

$ npx generate-scale-namespace --help
generate-scale-namespace/0.1.0

Usage:
  $ generate-scale-namespace

Commands:
    Generate namespace from definition

For more info, run any command with the `--help` flag:
  $ generate-scale-namespace --help

Options:
  -i, --input <file>                   [string] Path to input file with namespace definition. Allowed types: .json, .(c|m)?js, .ts
  -o, --output <file>                  [string] Path to the output TypeScript file
  -f, --force                          [boolean] Force overwrite output path if it exists
  --genNamespaceType <identificator>   [string] Name of generated namespace type
  --genNamespaceValue <identificator>  [string] Name of generated namespace value
  --genImportFrom [packageName]        [string] Library that contains namespace implementation (default: @scale-codec/namespace)
  --genCamel                           [boolean] Use 'camelCase' for struct fields or not
  -h, --help                           Display this message
  -v, --version                        Display version number

TODO

  • Maybe use another CLI helper that works fine with required arguments.

Readme

Keywords

none

Package Sidebar

Install

npm i @scale-codec/namespace-codegen-cli

Weekly Downloads

1

Version

0.1.0

License

Apache-2.0

Unpacked Size

347 kB

Total Files

5

Last publish

Collaborators

  • soramitsu-admin