Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: inverted preset and assembly options #344

Merged
merged 1 commit into from
Dec 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ USAGE
OPTIONS
-a, --assembly=assembly The assembly that defines the node(s) layout. It can be provided via custom preset or
cli parameter. If not provided, the value is resolved from the target/preset.yml
file. Options are: bootstrap, testnet, mainnet, my-custom-assembly.yml (advanced).
file. Options are: api, demo, dual, multinode, peer, my-custom-assembly.yml
(advanced).

-c, --customPreset=customPreset External preset file. Values in this file will override the provided presets.

-h, --help It shows the help of this command.

-p, --preset=preset The network preset. It can be provided via custom preset or cli parameter. If not
provided, the value is resolved from the target/preset.yml file. Options are: api,
demo, dual, multinode, peer, my-custom-network.yml (advanced, only for custom
provided, the value is resolved from the target/preset.yml file. Options are:
bootstrap, testnet, mainnet, my-custom-network.yml (advanced, only for custom
networks).

-r, --reset It resets the configuration generating a new one.
Expand Down
7 changes: 4 additions & 3 deletions docs/pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ USAGE
OPTIONS
-a, --assembly=assembly The assembly that defines the node(s) layout. It can be provided via custom preset or
cli parameter. If not provided, the value is resolved from the target/preset.yml
file. Options are: bootstrap, testnet, mainnet, my-custom-assembly.yml (advanced).
file. Options are: api, demo, dual, multinode, peer, my-custom-assembly.yml
(advanced).

-c, --customPreset=customPreset External preset file. Values in this file will override the provided presets.

-h, --help It shows the help of this command.

-p, --preset=preset The network preset. It can be provided via custom preset or cli parameter. If not
provided, the value is resolved from the target/preset.yml file. Options are: api,
demo, dual, multinode, peer, my-custom-network.yml (advanced, only for custom
provided, the value is resolved from the target/preset.yml file. Options are:
bootstrap, testnet, mainnet, my-custom-network.yml (advanced, only for custom
networks).

-r, --reset It resets the configuration generating a new one.
Expand Down
6 changes: 3 additions & 3 deletions docs/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ USAGE
OPTIONS
-a, --assembly=assembly
The assembly that defines the node(s) layout. It can be provided via custom preset or cli parameter. If not
provided, the value is resolved from the target/preset.yml file. Options are: bootstrap, testnet, mainnet,
provided, the value is resolved from the target/preset.yml file. Options are: api, demo, dual, multinode, peer,
my-custom-assembly.yml (advanced).

-b, --build
Expand All @@ -34,8 +34,8 @@ OPTIONS

-p, --preset=preset
The network preset. It can be provided via custom preset or cli parameter. If not provided, the value is resolved
from the target/preset.yml file. Options are: api, demo, dual, multinode, peer, my-custom-network.yml (advanced,
only for custom networks).
from the target/preset.yml file. Options are: bootstrap, testnet, mainnet, my-custom-network.yml (advanced, only for
custom networks).

-r, --reset
It resets the configuration generating a new one.
Expand Down
4 changes: 2 additions & 2 deletions src/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ export default class Config extends Command {
preset: flags.string({
char: 'p',
description: `The network preset. It can be provided via custom preset or cli parameter. If not provided, the value is resolved from the target/preset.yml file. Options are: ${Object.keys(
Assembly,
Preset,
).join(', ')}, my-custom-network.yml (advanced, only for custom networks).`,
}),
assembly: flags.string({
char: 'a',
description: `The assembly that defines the node(s) layout. It can be provided via custom preset or cli parameter. If not provided, the value is resolved from the target/preset.yml file. Options are: ${Object.keys(
Preset,
Assembly,
).join(', ')}, my-custom-assembly.yml (advanced).`,
}),
customPreset: flags.string({
Expand Down