Skip to content

Commit 0c3c80f

Browse files
authored
feat(magicdrop v2): allow stages config on set-stages cmd (#228)
1 parent f0c6d02 commit 0c3c80f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

cli-typescript/src/cmds/general.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ export const setUriCmd = () =>
6262
export const setStagesCmd = () =>
6363
new Command('set-stages')
6464
.command('set-stages <symbol>')
65-
.addOption(getStagesFileOption().makeOptionMandatory())
65+
.addOption(getStagesFileOption())
6666
.description(
67-
'Set the stages for the collection. Note: this will overwrite the existing stages.',
67+
`Set the stages for the collection. Note: this will overwrite the existing stages. You can provide a stages file or update the existing stages in the config.`,
6868
)
6969
.action(setStagesAction);
7070

@@ -176,6 +176,7 @@ export const ownerMintCmd = () =>
176176
export const getWalletInfoCmd = () =>
177177
new Command('get-wallet-info')
178178
.command('get-wallet-info <symbol>')
179+
.alias('gwi')
179180
.description('Get the wallet info for a collection')
180181
.action(getWalletInfoAction);
181182

cli-typescript/src/utils/cmdActions/setStagesAction.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ import { actionPresets } from './common';
1414
export const setStagesAction = async (
1515
symbol: string,
1616
params: {
17-
stagesFile: string;
17+
stagesFile?: string;
1818
},
1919
) => {
2020
try {
2121
const { cm, config, store } = await actionPresets(symbol);
2222

23-
// Process stages file
24-
console.log('Processing stages file... this will take a moment.');
23+
// Process stages data
24+
console.log('Processing stages data... this will take a moment.');
2525
const stagesData = await processStages({
2626
collectionFile: store.root,
2727
stagesFile: params.stagesFile,

0 commit comments

Comments
 (0)