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

feat: -cc #162

Merged
merged 1 commit into from
Nov 29, 2024
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
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