File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ const parser = yargs
28
28
. options ( {
29
29
C : {
30
30
alias : 'no-clipboard' ,
31
+ type : 'boolean' ,
31
32
describe : "DON'T copy ipfs.io/ipfs/<hash> to clipboard" ,
32
33
} ,
33
34
d : {
@@ -36,6 +37,7 @@ const parser = yargs
36
37
describe : 'DNS provider whose dnslink TXT field will be updated' ,
37
38
} ,
38
39
O : {
40
+ alias : 'no-open' ,
39
41
type : 'boolean' ,
40
42
describe : "DON'T open URL after deploying" ,
41
43
} ,
@@ -98,10 +100,10 @@ async function main() {
98
100
const deployOptions = {
99
101
publicDirPath : argv . path ,
100
102
copyHttpGatewayUrlToClipboard : ! argv . noClipboard ,
101
- open : ! argv . O ,
102
103
port : argv . port ,
103
- remotePinners : argv . p ,
104
- dnsProviders : argv . d ,
104
+ open : ! argv . noOpen ,
105
+ remotePinners : argv . pinner ,
106
+ dnsProviders : argv . dns ,
105
107
siteDomain : argv . siteDomain ,
106
108
credentials : {
107
109
cloudflare : {
@@ -132,7 +134,9 @@ async function main() {
132
134
` )
133
135
} else {
134
136
const pinnedHash = await deploy ( deployOptions )
135
- if ( ! pinnedHash ) {
137
+ if ( pinnedHash ) {
138
+ process . stdout . write ( pinnedHash + '\n' )
139
+ } else {
136
140
process . exit ( 1 )
137
141
}
138
142
}
You can’t perform that action at this time.
0 commit comments