Skip to content

Commit e93fa1d

Browse files
committed
properly handle version and name flags
1 parent b643068 commit e93fa1d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/cli/src/commands/deploy.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export default class DeployCommand extends Command {
116116
type: 'input',
117117
name: 'subgraphName',
118118
message: () => 'What is the subgraph name?',
119+
skip: () => !!subgraphNameArg,
119120
initial: subgraphNameArg,
120121
required: true,
121122
},
@@ -158,6 +159,7 @@ export default class DeployCommand extends Command {
158159
name: 'versionLabel',
159160
message: () => 'Which version label to use? (e.g. "v0.0.1")',
160161
initial: versionLabelFlag,
162+
skip: () => !!versionLabelFlag,
161163
required: true,
162164
},
163165
]);
@@ -191,10 +193,10 @@ export default class DeployCommand extends Command {
191193
errorMessage += '\nYou may need to authenticate first.';
192194
}
193195
spinner.fail(errorMessage);
194-
this.exit(1);
196+
process.exit(1);
195197
} else if (requestError) {
196198
spinner.fail(`HTTP error deploying the subgraph ${requestError.code}`);
197-
this.exit(1);
199+
process.exit(1);
198200
} else {
199201
spinner.stop();
200202

0 commit comments

Comments
 (0)