gritpack setup
Set up this project's Cargo, npm or Go to fetch packages from your hub
gritpack setup [OPTIONS]
Options
--path <PATH> | Project directory to configure |
--adapter <ADAPTER> | Project kind to configure when more than one is detected |
--profile <PROFILE> | Login profile whose hub to use; defaults to the default profile |
--config <CONFIG> | Profile configuration file |
--cargo-registry <NAME> | Name of the Cargo registry entry that points at the hub |
--scope <SCOPE> | npm: a scope to fetch from the hub, without the @; repeat as needed. Defaults to the package's own scope, or every package if it has none |
--private-prefix <PRIVATE_PREFIX> | Go: module path prefix to fetch from the hub; defaults to the go.mod module |
--force | Cargo and npm: replace existing settings that differ |
--no-public-fallback | Go: use only the hub, without proxy.golang.org as a fallback |
--format <FORMAT> | Output format: human or 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 setup
$ gritpack setup --profile work