Skip to content

Commit 5904b06

Browse files
authored
Merge branch 'scaleway:master' into master
2 parents 47441b9 + 85f2d80 commit 5904b06

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cmd/scw/testdata/test-all-usage-iam-ssh-key-create-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ EXAMPLES:
1111

1212
ARGS:
1313
name=<generated> Name of the SSH key. Max length is 1000
14-
public-key SSH public key. Currently only the ssh-rsa, ssh-dss (DSA), ssh-ed25519 and ecdsa keys with NIST curves are supported. Max length is 65000
14+
public-key SSH public key. Currently only the ssh-rsa, ssh-dss (DSA), ssh-ed25519 and ecdsa keys with NIST curves are supported. Max length is 65000 (Support file loading with @/path/to/file)
1515
[project-id] Project ID to use. If none is passed the default project ID will be used
1616

1717
FLAGS:

internal/namespaces/iam/v1alpha1/custom.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ func GetCommands() *core.Commands {
5252
cmds.MustFind("iam", "policy", "create").Override(iamPolicyCreateBuilder)
5353
cmds.MustFind("iam", "policy", "get").Override(iamPolicyGetBuilder)
5454

55+
cmds.MustFind("iam", "ssh-key", "create").ArgSpecs.GetByName("public-key").CanLoadFile = true
56+
5557
iamCmd := cmds.MustFind("iam", "api-key", "get")
5658
iamCmd.ArgsType = iamApiKeyCustomBuilder.argType
5759
iamCmd.ArgSpecs = iamApiKeyCustomBuilder.argSpecs

0 commit comments

Comments
 (0)