Accounts can update login-name. Fix help text for subtype resource update and creates. (#575)

pull/574/head^2
Todd Knight 6 years ago committed by GitHub
parent 4354cf8582
commit 83314b7750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,7 +34,7 @@ func (c *PasswordCommand) Synopsis() string {
var passwordFlagsMap = map[string][]string{
"create": {"auth-method-id", "name", "description", "login-name", "password"},
"update": {"id", "name", "description", "version"},
"update": {"id", "name", "description", "version", "login-name"},
}
func (c *PasswordCommand) Help() string {
@ -42,22 +42,22 @@ func (c *PasswordCommand) Help() string {
switch c.Func {
case "create":
info = base.WrapForHelpText([]string{
"Usage: boundary accounts password create [options] [args]",
"Usage: boundary accounts create password [options] [args]",
"",
" Create a password-type account. Example:",
"",
` $ boundary accounts password create -name prodops -description "Password account for ProdOps" -address "127.0.0.1"`,
` $ boundary accounts create password -login-name prodops -description "Password account for ProdOps"`,
"",
"",
})
case "update":
info = base.WrapForHelpText([]string{
"Usage: boundary accounts password update [options] [args]",
"Usage: boundary accounts update password [options] [args]",
"",
" Update a password-type account given its ID. Example:",
"",
` $ boundary accounts password update -id hst_1234567890 -name "devops" -description "Password account for DevOps" -address "10.20.30.40"`,
` $ boundary accounts update password -id apw_1234567890 -name "devops" -description "Password account for DevOps"`,
"",
"",
})

@ -40,22 +40,22 @@ func (c *PasswordCommand) Help() string {
switch c.Func {
case "create":
info = base.WrapForHelpText([]string{
"Usage: boundary auth-methods password create [options] [args]",
"Usage: boundary auth-methods create password [options] [args]",
"",
" Create a password-type auth-method. Example:",
"",
` $ boundary auth-methods password create -name prodops -description "Password auth-method for ProdOps"`,
` $ boundary auth-methods create password -name prodops -description "Password auth-method for ProdOps"`,
"",
"",
})
case "update":
info = base.WrapForHelpText([]string{
"Usage: boundary auth-methods password update [options] [args]",
"Usage: boundary auth-methods update password [options] [args]",
"",
" Update a password-type auth-method given its ID. Example:",
"",
` $ boundary auth-methods password update -id ampw_1234567890 -name "devops" -description "Password auth-method for DevOps"`,
` $ boundary auth-methods update password -id ampw_1234567890 -name "devops" -description "Password auth-method for DevOps"`,
"",
"",
})

@ -36,22 +36,22 @@ func (c *StaticCommand) Help() string {
switch c.Func {
case "create":
info = base.WrapForHelpText([]string{
"Usage: boundary host-catalogs static create [options] [args]",
"Usage: boundary host-catalogs create static [options] [args]",
"",
" Create a static-type host-catalog. Example:",
"",
` $ boundary host-catalogs static create -name prodops -description "Static host-catalog for ProdOps"`,
` $ boundary host-catalogs create static -name prodops -description "Static host-catalog for ProdOps"`,
"",
"",
})
case "update":
info = base.WrapForHelpText([]string{
"Usage: boundary host-catalogs static update [options] [args]",
"Usage: boundary host-catalogs update static [options] [args]",
"",
" Update a static-type host-catalog given its ID. Example:",
"",
` $ boundary host-catalogs static update -id hcst_1234567890 -name "devops" -description "Static host-catalog for DevOps"`,
` $ boundary host-catalogs update static -id hcst_1234567890 -name "devops" -description "Static host-catalog for DevOps"`,
"",
"",
})

@ -49,11 +49,11 @@ func (c *StaticCommand) Help() string {
case "update":
info = base.WrapForHelpText([]string{
"Usage: boundary hosts static update [options] [args]",
"Usage: boundary hosts update static [options] [args]",
"",
" Update a static-type host given its ID. Example:",
"",
` $ boundary hosts static update -id hst_1234567890 -name "devops" -description "Static host for DevOps" -address "10.20.30.40"`,
` $ boundary hosts update static -id hst_1234567890 -name "devops" -description "Static host for DevOps" -address "10.20.30.40"`,
"",
"",
})

@ -36,22 +36,22 @@ func (c *StaticCommand) Help() string {
switch c.Func {
case "create":
info = base.WrapForHelpText([]string{
"Usage: boundary host-sets static create [options] [args]",
"Usage: boundary host-sets create static [options] [args]",
"",
" Create a static-type host-set. Example:",
"",
` $ boundary host-sets static create -name prodops -description "Static host-set for ProdOps"`,
` $ boundary host-sets create static -name prodops -description "Static host-set for ProdOps"`,
"",
"",
})
case "update":
info = base.WrapForHelpText([]string{
"Usage: boundary host-sets static update [options] [args]",
"Usage: boundary host-sets update static [options] [args]",
"",
" Update a static-type host-set given its ID. Example:",
"",
` $ boundary host-sets static update -id hsst_1234567890 -name "devops" -description "Static host-set for DevOps"`,
` $ boundary host-sets update static -id hsst_1234567890 -name "devops" -description "Static host-set for DevOps"`,
"",
"",
})

@ -41,11 +41,11 @@ func (c *TcpCommand) Help() string {
switch c.Func {
case "create":
info = base.WrapForHelpText([]string{
"Usage: boundary targets tcp create [options] [args]",
"Usage: boundary targets create tcp [options] [args]",
"",
" Create a tcp-type target. Example:",
"",
` $ boundary targets tcp create -name prodops -description "Tcp target for ProdOps"`,
` $ boundary targets create tcp -name prodops -description "Tcp target for ProdOps"`,
"",
"",
})

Loading…
Cancel
Save