Skip to content
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/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const deploy = async (args?: string[]) => {
};

const deployWithProposal = async ({args, clearOption}: {args?: string[]; clearOption: boolean}) => {
const noCommit = hasArgs({args, options: ['-na', '--no-apply']});
const noCommit = hasArgs({args, options: ['--no-apply']});

const deployFn = async ({
deploy,
Expand Down
6 changes: 3 additions & 3 deletions src/constants/help.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export const CHANGES_APPLY_DESCRIPTION = 'Apply a submitted change.';
export const CHANGES_REJECT_DESCRIPTION = 'Reject a change.';

export const OPTION_KEEP_STAGED = `${yellow('-k, --keep-staged')} Keep staged assets in memory after applying the change.`;
export const OPTION_HASH = `${yellow('-a, --hash')} The expected hash of all included changes (for verification).`;
export const OPTION_HASH = `${yellow('--hash')} The expected hash of all included changes (for verification).`;
export const OPTION_HELP = `${yellow('-h, --help')} Output usage information.`;
export const OPTION_SRC = `${yellow('-s, --src')} A path to a specific local gzipped WASM file to publish.`;
export const OPTIONS_UPGRADE = `${yellow('-r, --reset')} Reset to the initial state.
${yellow('-cc, --clear-chunks')} Clear any previously uploaded WASM chunks (applies if the WASM size is greater than 2MB).
${yellow('-ns, --no-snapshot')} Skip creating a snapshot before upgrading.`;
${yellow('--clear-chunks')} Clear any previously uploaded WASM chunks (applies if the WASM size is greater than 2MB).
${yellow('--no-snapshot')} Skip creating a snapshot before upgrading.`;

export const NOTE_KEEP_STAGED = `The option ${yellow('--keep-staged')} only applies when ${yellow('--no-apply')} is NOT used (i.e. the change is applied immediately).`;
2 changes: 1 addition & 1 deletion src/help/deploy.help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const usage = `Usage: ${green('juno')} ${cyan('deploy')} ${yellow('[options]')}

Options:
${yellow('-c, --clear')} Clear existing app files before proceeding with deployment.
${yellow('-na, --no-apply')} Submit the deployment as a change but do not apply it yet.
${yellow('--no-apply')} Submit the deployment as a change but do not apply it yet.
${OPTION_KEEP_STAGED}
${yellow('-i, --immediate')} Deploy files instantly (bypasses the change workflow).
${helpMode}
Expand Down
2 changes: 1 addition & 1 deletion src/help/functions.publish.help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {TITLE} from './help';
const usage = `Usage: ${green('juno')} ${cyan('functions')} ${magenta('publish')} ${yellow('[options]')}

Options:
${yellow('-na, --no-apply')} Submit the release as a change but do not apply it yet.
${yellow('--no-apply')} Submit the release as a change but do not apply it yet.
${OPTION_KEEP_STAGED}
${OPTION_SRC}
${OPTION_HELP}
Expand Down
2 changes: 1 addition & 1 deletion src/services/functions/publish.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const publishWasmWithProposal = async ({
version
}: Omit<UpgradeFunctionsParams, 'src'> &
FilePaths & {version: string}): Promise<DeployResultWithProposal> => {
const noCommit = hasArgs({args, options: ['-na', '--no-apply']});
const noCommit = hasArgs({args, options: ['--no-apply']});

const uploadFileFn = async ({
fullPath: storagePath,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/changes.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const readChangesIdAndHash = (args?: string[]): {proposalId: bigint; hash

const proposalId = toBigInt();

const hash = nextArg({args, option: '-a'}) ?? nextArg({args, option: '--hash'});
const hash = nextArg({args, option: '--hash'});

assertNonNullish(hash, 'A hash must be provided');

Expand Down
4 changes: 2 additions & 2 deletions src/utils/upgrade.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export const newerReleases = async ({
export const readUpgradeOptions = (
args?: string[]
): {noSnapshot: boolean; preClearChunks: boolean} => {
const noSnapshot = hasArgs({args, options: ['-ns', '--no-snapshot']});
const preClearChunks = hasArgs({args, options: ['-cc', '--clear-chunks']});
const noSnapshot = hasArgs({args, options: ['--no-snapshot']});
const preClearChunks = hasArgs({args, options: ['--clear-chunks']});

return {noSnapshot, preClearChunks};
};