refactor(user_password) rename all references of user_password to username_password (#2232)
This commit is contained in:
1 parent
afd4437492
commit
3e9c99c217
33 files changed
+367
-278
No files matched your search
@@ -42,7 +42,7 @@ func (c *Command) extraHelpFunc(helpMap map[string]func() string) string {
|
||||
"",
|
||||
" This command allows update operations on Boundary credential resources. Example:",
|
||||
"",
|
||||
" Update a user password credential:",
|
||||
" Update a username password credential:",
|
||||
"",
|
||||
` $ boundary credentials update username-password -id cred_1234567890 -name devops -description "For DevOps usage"`,
|
||||
"",
|
||||
|
||||
@@ -33,7 +33,7 @@ func extraUsernamePasswordActionsFlagsMapFuncImpl() map[string][]string {
|
||||
}
|
||||
|
||||
func extraUsernamePasswordFlagsFuncImpl(c *UsernamePasswordCommand, set *base.FlagSets, _ *base.FlagSet) {
|
||||
f := set.NewFlagSet("User Password Credential Options")
|
||||
f := set.NewFlagSet("Username Password Credential Options")
|
||||
|
||||
for _, name := range flagsUsernamePasswordMap[c.Func] {
|
||||
switch name {
|
||||
@@ -75,7 +75,7 @@ func (c *UsernamePasswordCommand) extraUsernamePasswordHelpFunc(_ map[string]fun
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary credentials create username-password -credential-store-id [options] [args]",
|
||||
"",
|
||||
" Create a user password credential. Example:",
|
||||
" Create a username password credential. Example:",
|
||||
"",
|
||||
` $ boundary credentials create username-password -credential-store-id csvlt_1234567890 -username user -password pass`,
|
||||
"",
|
||||
@@ -84,9 +84,9 @@ func (c *UsernamePasswordCommand) extraUsernamePasswordHelpFunc(_ map[string]fun
|
||||
|
||||
case "update":
|
||||
helpStr = base.WrapForHelpText([]string{
|
||||
"Usage: boundary credentials update user password [options] [args]",
|
||||
"Usage: boundary credentials update username-password [options] [args]",
|
||||
"",
|
||||
" Update a user password credential given its ID. Example:",
|
||||
" Update a username password credential given its ID. Example:",
|
||||
"",
|
||||
` $ boundary credentials update username-password -id clvlt_1234567890 -name devops -description "For DevOps usage"`,
|
||||
"",
|
||||
|
||||
Reference in new issue
Block a user