Skip to content

Commit

Permalink
feat: break upgrade command into subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Feb 16, 2024
1 parent e8d3987 commit e2f56f3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/commands/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,21 @@ Commands:
export const helpUpgrade = `
${TITLE}
Usage: ${green('juno')} ${cyan('upgrade')} ${yellow('[options]')}
Usage: ${green('juno')} ${cyan('upgrade')} ${magenta('<subcommand>')} ${yellow('[options]')}
Subcommands:
${magenta('satellite')} Upgrade a satellite. Subcommand can be shortened to ${magenta('s')}.
${magenta('mission-control')} Upgrade a mission control. Subcommand can be shortened to ${magenta('m')}.
${magenta('orbiter')} Upgrade an orbiter. Subcommand can be shortened as ${magenta('o')}.
Options:
${yellow('-m, --mission-control')} Target a mission control.
${yellow('-o, --orbiter')} Target an orbiter.
${yellow('-s, --src')} A local gzipped wasm file for the upgrade.
${yellow('-r, --reset')} Reset to the initial state.
${yellow('-n, --nocheck')} Skip assertions and execute upgrade without prompts.
${yellow('-h, --help')} Output usage information.
Notes:
- The command targets per default a satellite.
- Resetting a mission control is not possible.
- Disabling checks bypasses the verification of the target hash and skips the validation for build types.
`;
Expand Down Expand Up @@ -125,7 +127,7 @@ export const helpDevContinue = `${helpDevBuild}
export const helpDev = `
${TITLE}
Usage: ${green('juno')} ${cyan('dev')} ${magenta('<sub-command>')}
Usage: ${green('juno')} ${cyan('dev')} ${magenta('<subcommand>')}
Subcommands:
${helpDevBuild}
Expand Down

0 comments on commit e2f56f3

Please sign in to comment.