Skip to content

Commit c697882

Browse files
authored
feat: update generated cli (#871)
1 parent 288ec28 commit c697882

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/namespaces/account/v2alpha1/account_cli.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,14 @@ func accountSSHKeyAdd() *core.Command {
123123
ArgSpecs: core.ArgSpecs{
124124
{
125125
Name: "name",
126+
Short: `The name of the SSH key`,
126127
Required: false,
127128
Positional: false,
128129
},
129130
{
130131
Name: "public-key",
131-
Required: false,
132+
Short: `SSH public key. Currently ssh-rsa, ssh-dss (DSA), ssh-ed25519 and ecdsa keys with NIST curves are supported`,
133+
Required: true,
132134
Positional: false,
133135
},
134136
core.OrganizationIDArgSpec(),
@@ -144,7 +146,7 @@ func accountSSHKeyAdd() *core.Command {
144146
Examples: []*core.Example{
145147
{
146148
Short: "Add a given ssh key",
147-
Request: `{"name":"foobar","public_key":"ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBN+7q3Vx+9V6Ye8cfvV6wnXsQyp3wwy8ucSXYI3HJz9gB9x8lsDAQ8DUSz+sNajzKdhRtio1hNOyhn3O5ku5Kk= foobar@foobar"}`,
149+
Request: `null`,
148150
},
149151
},
150152
SeeAlsos: []*core.SeeAlso{
@@ -171,6 +173,7 @@ func accountSSHKeyGet() *core.Command {
171173
ArgSpecs: core.ArgSpecs{
172174
{
173175
Name: "ssh-key-id",
176+
Short: `The ID of the SSH key`,
174177
Required: true,
175178
Positional: true,
176179
},

0 commit comments

Comments
 (0)