gritpack init [OPTIONS] [NAME]
Arguments
[NAME] | Package name; defaults to the project directory name |
Options
--dialect <DIALECT> | Language and version of the package, such as c/c23 |
--adapter <ADAPTER> | Project kind to use when more than one is detectedValues: native, cargo, npm, go, c |
--version <VERSION> | Initial package versionDefault: 0.1.0 |
--encoding <ENCODING> | Source text encoding of the package, if it has one |
--target <TARGET> | Target platform of the package, if it has one |
--path <PATH> | Project directory to initializeDefault: . |
--format <FORMAT> | Output format: human or jsonDefault: human · Values: human, json |
--json[=<FIELDS>] | Same as --format json; --json=name,version keeps only those fields |
--jq <EXPRESSION> | Print the JSON output through a jq expression, strings unquoted |
-h, --help | Print help |
Examples
$ gritpack init
$ gritpack init parser --dialect c/c23