Skip to content

Commit

Permalink
feat: -cc (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker authored Nov 29, 2024
1 parent cc66370 commit dcd888a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/help/upgrade.help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Options:
${yellow('-t, --target')} Which module type should be upgraded? Valid targets are ${magenta('satellite')}, ${magenta('mission-control')} or ${magenta('orbiter')}.
${yellow('-s, --src')} An optional local gzipped WASM file for the upgrade. By default, the CDN will be used.
${yellow('-r, --reset')} Reset to the initial state.
${yellow('-c, --clear-chunks')} Clear any previously uploaded WASM chunks (applies if the WASM size is greater than 2MB).
${yellow('-cc, --clear-chunks')} Clear any previously uploaded WASM chunks (applies if the WASM size is greater than 2MB).
${helpMode}
${yellow('-h, --help')} Output usage information.
Expand Down
4 changes: 2 additions & 2 deletions src/services/upgrade/upgrade.mission-control.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const updateMissionControlRelease = async ({
return {success: false};
}

const preClearChunks = hasArgs({args, options: ['-c', '--clear-chunks']});
const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']});

const upgradeMissionControlWasm = async (params: UpgradeWasmModule) => {
await upgradeMissionControlAdmin({
Expand Down Expand Up @@ -108,7 +108,7 @@ const upgradeMissionControlCustom = async ({
return {success: false};
}

const preClearChunks = hasArgs({args, options: ['-c', '--clear-chunks']});
const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']});

const upgradeMissionControlWasm = async (params: UpgradeWasmModule) => {
await upgradeMissionControlAdmin({
Expand Down
4 changes: 2 additions & 2 deletions src/services/upgrade/upgrade.orbiter.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const upgradeOrbiterCustom = async ({

const reset = await confirmReset({args, assetKey: 'orbiter'});

const preClearChunks = hasArgs({args, options: ['-c', '--clear-chunks']});
const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']});

const upgradeOrbiterWasm = async (params: UpgradeWasmModule) => {
await upgradeOrbiterAdmin({
Expand Down Expand Up @@ -115,7 +115,7 @@ const updateOrbiterRelease = async ({

const reset = await confirmReset({args, assetKey: 'orbiter'});

const preClearChunks = hasArgs({args, options: ['-c', '--clear-chunks']});
const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']});

const upgradeOrbiterWasm = async (params: UpgradeWasmModule) => {
await upgradeOrbiterAdmin({
Expand Down
4 changes: 2 additions & 2 deletions src/services/upgrade/upgrade.satellite.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const upgradeSatelliteCustom = async ({
satellite
});

const preClearChunks = hasArgs({args, options: ['-c', '--clear-chunks']});
const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']});

const upgrade = async (
params: Pick<UpgradeWasm, 'upgrade' | 'reset' | 'assert'>
Expand Down Expand Up @@ -111,7 +111,7 @@ const upgradeSatelliteRelease = async ({
return {success: false};
}

const preClearChunks = hasArgs({args, options: ['-c', '--clear-chunks']});
const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']});

const upgrade = async (
params: Pick<UpgradeWasm, 'upgrade' | 'reset' | 'assert'>
Expand Down

0 comments on commit dcd888a

Please sign in to comment.