File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/cli/src/commands Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments