Skip to content

Commit 86b72e4

Browse files
authored
fix: set defaultHelp on wait flag (#360)
1 parent 8336a34 commit 86b72e4

File tree

3 files changed

+6
-34
lines changed

3 files changed

+6
-34
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"eslint-plugin-sf-plugin": "^1.18.2",
2727
"oclif": "^4",
2828
"ts-node": "^10.9.2",
29-
"typescript": "^4.9.5"
29+
"typescript": "^5.4.3"
3030
},
3131
"engines": {
3232
"node": ">=16.0.0"

src/common/flags/flags.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export const wait: OptionFlag<Duration> = Flags.duration({
3131
summary: messages.getMessage('flags.wait.summary'),
3232
description: messages.getMessage('flags.wait.description'),
3333
defaultValue: 33,
34+
// Set defaultHelp. This is not needed once sf-plugins-core is updated to 7.1.16 or newer.
35+
defaultHelp: async () => Promise.resolve(Duration.minutes(33).toString()),
3436
helpValue: '<minutes>',
3537
min: 3,
3638
exclusive: ['async'],

yarn.lock

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7771,16 +7771,7 @@ stdout-stderr@^0.1.9:
77717771
debug "^4.1.1"
77727772
strip-ansi "^6.0.0"
77737773

7774-
"string-width-cjs@npm:string-width@^4.2.0":
7775-
version "4.2.3"
7776-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
7777-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
7778-
dependencies:
7779-
emoji-regex "^8.0.0"
7780-
is-fullwidth-code-point "^3.0.0"
7781-
strip-ansi "^6.0.1"
7782-
7783-
string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
7774+
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
77847775
version "4.2.3"
77857776
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
77867777
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -7839,14 +7830,7 @@ string_decoder@~1.1.1:
78397830
dependencies:
78407831
safe-buffer "~5.1.0"
78417832

7842-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
7843-
version "6.0.1"
7844-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
7845-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
7846-
dependencies:
7847-
ansi-regex "^5.0.1"
7848-
7849-
strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
7833+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
78507834
version "6.0.1"
78517835
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
78527836
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -8220,11 +8204,6 @@ typedoc@^0.25.12:
82208204
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.4.tgz#eb2471e7b0a5f1377523700a21669dce30c2d952"
82218205
integrity sha512-dGE2Vv8cpVvw28v8HCPqyb08EzbBURxDpuhJvTrusShUfGnhHBafDsLdS1EhhxyL6BJQE+2cT3dDPAv+MQ6oLw==
82228206

8223-
typescript@^4.9.5:
8224-
version "4.9.5"
8225-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
8226-
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
8227-
82288207
typescript@~5.3.2:
82298208
version "5.3.2"
82308209
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.2.tgz#00d1c7c1c46928c5845c1ee8d0cc2791031d4c43"
@@ -8455,7 +8434,7 @@ workerpool@6.2.1:
84558434
resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.1.tgz#46fc150c17d826b86a008e5a4508656777e9c343"
84568435
integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==
84578436

8458-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
8437+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
84598438
version "7.0.0"
84608439
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
84618440
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -8473,15 +8452,6 @@ wrap-ansi@^6.0.1, wrap-ansi@^6.2.0:
84738452
string-width "^4.1.0"
84748453
strip-ansi "^6.0.0"
84758454

8476-
wrap-ansi@^7.0.0:
8477-
version "7.0.0"
8478-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
8479-
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
8480-
dependencies:
8481-
ansi-styles "^4.0.0"
8482-
string-width "^4.1.0"
8483-
strip-ansi "^6.0.0"
8484-
84858455
wrap-ansi@^8.1.0:
84868456
version "8.1.0"
84878457
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)