Skip to content

Commit 1871136

Browse files
committed
code review
1 parent c95d96c commit 1871136

File tree

2 files changed

+27
-28
lines changed

2 files changed

+27
-28
lines changed

packages/wrangler/src/__tests__/containers/ssh.test.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,15 @@ describe("containers ssh", () => {
3939
-v, --version Show version number [boolean]
4040
4141
OPTIONS
42-
--cipher SSH option for cipher_spec (-c) [string]
43-
--log-file SSH option for log_file (-c) [string]
44-
--escape-char SSH option for escape_char (-e) [string]
45-
--config-file SSH option for config-file (-F) [string]
46-
--pkcs11 SSH option for pkcs11 (-I) [string]
47-
--identity-file SSH option for identity_file (-i) [string]
48-
--mac-spec SSH option for mac_spec (-m) [string]
49-
--ctl-cmd SSH option for ctl_cmd (-O) [string]
50-
--option SSH option for option (-o) [string]
51-
--tag SSH option for tag (-P) [string]
52-
--ctl-path SSH option for ctl_path (-S) [string]"
42+
--cipher SSH option: Selects the cipher specification for encrypting the session [string]
43+
--log-file SSH option: Append debug logs to log_file instead of standard error [string]
44+
--escape-char SSH option: Sets the escape character for sessions with a pty (default: ‘~’) [string]
45+
--config-file SSH option: Specifies an alternative per-user configuration file [string]
46+
--pkcs11 SSH option: Specify the PKCS#11 shared library ssh should use to communicate with a PKCS#11 token providing keys for user authentication [string]
47+
--identity-file SSH option: Selects a file from which the identity (private key) for public key authentication is read [string]
48+
--mac-spec SSH option: A comma-separated list of MAC (message authentication code) algorithms, specified in order of preference [string]
49+
--option SSH option: Can be used to give options in the format used in the configuration file [string]
50+
--tag SSH option: Specify a tag name that may be used to select configuration in ssh_config(5) [string]"
5351
`);
5452
});
5553

packages/wrangler/src/containers/containers.ts

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -167,47 +167,48 @@ export function sshYargs(args: CommonYargsArgv) {
167167
})
168168
// Following are SSH flags that should be directly passed in
169169
.option("cipher", {
170-
describe: "SSH option for cipher_spec",
170+
describe:
171+
"SSH option: Selects the cipher specification for encrypting the session",
171172
type: "string",
172173
})
173174
.option("log-file", {
174-
describe: "SSH option for log_file",
175+
describe:
176+
"SSH option: Append debug logs to log_file instead of standard error",
175177
type: "string",
176178
})
177179
.option("escape-char", {
178-
describe: "SSH option for escape_char",
180+
describe:
181+
"SSH option: Sets the escape character for sessions with a pty (default: ‘~’)",
179182
type: "string",
180183
})
181184
.option("config-file", {
182-
describe: "SSH option for config-file",
185+
describe:
186+
"SSH option: Specifies an alternative per-user configuration file",
183187
type: "string",
184188
})
185189
.option("pkcs11", {
186-
describe: "SSH option for pkcs11",
190+
describe:
191+
"SSH option: Specify the PKCS#11 shared library ssh should use to communicate with a PKCS#11 token providing keys for user authentication",
187192
type: "string",
188193
})
189194
.option("identity-file", {
190-
describe: "SSH option for identity_file",
195+
describe:
196+
"SSH option: Selects a file from which the identity (private key) for public key authentication is read",
191197
type: "string",
192198
})
193199
.option("mac-spec", {
194-
describe: "SSH option for mac_spec",
195-
type: "string",
196-
})
197-
.option("ctl-cmd", {
198-
describe: "SSH option for ctl_cmd",
200+
describe:
201+
"SSH option: A comma-separated list of MAC (message authentication code) algorithms, specified in order of preference",
199202
type: "string",
200203
})
201204
.option("option", {
202-
describe: "SSH option for option",
205+
describe:
206+
"SSH option: Can be used to give options in the format used in the configuration file",
203207
type: "string",
204208
})
205209
.option("tag", {
206-
describe: "SSH option for tag",
207-
type: "string",
208-
})
209-
.option("ctl-path", {
210-
describe: "SSH option for ctl_path",
210+
describe:
211+
"SSH option: Specify a tag name that may be used to select configuration in ssh_config(5)",
211212
type: "string",
212213
})
213214
);

0 commit comments

Comments
 (0)