1 parent
c4effc078b
commit
da30653486
25 files changed
+28
-26
No files matched your search
@@ -55,7 +55,7 @@ func (c *Command) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "auth method"
|
||||
synopsisStr := "auth-method"
|
||||
|
||||
return common.SynopsisFunc(c.Func, synopsisStr)
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ func (c *LdapCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "auth method"
|
||||
synopsisStr := "auth-method"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "ldap-type", synopsisStr)
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ func (c *OidcCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "auth method"
|
||||
synopsisStr := "auth-method"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "oidc-type", synopsisStr)
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ func (c *PasswordCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "auth method"
|
||||
synopsisStr := "auth-method"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "password-type", synopsisStr)
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ func (c *Command) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "auth token"
|
||||
synopsisStr := "auth-token"
|
||||
|
||||
return common.SynopsisFunc(c.Func, synopsisStr)
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ func (c *Command) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "credential library"
|
||||
synopsisStr := "credential-library"
|
||||
|
||||
return common.SynopsisFunc(c.Func, synopsisStr)
|
||||
}
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ func (c *VaultGenericCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "credential library"
|
||||
synopsisStr := "credential-library"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "vault-generic-type", synopsisStr)
|
||||
|
||||
|
||||
+1
-1
@@ -56,7 +56,7 @@ func (c *VaultSshCertificateCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "credential library"
|
||||
synopsisStr := "credential-library"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "vault-ssh-certificate-type", synopsisStr)
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ func (c *VaultCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "credential library"
|
||||
synopsisStr := "credential-library"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "vault-type", synopsisStr)
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ func (c *Command) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "credential store"
|
||||
synopsisStr := "credential-store"
|
||||
|
||||
return common.SynopsisFunc(c.Func, synopsisStr)
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ func (c *StaticCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "credential store"
|
||||
synopsisStr := "credential-store"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "static-type", synopsisStr)
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ func (c *VaultCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "credential store"
|
||||
synopsisStr := "credential-store"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "vault-type", synopsisStr)
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ func (c *Command) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "host catalog"
|
||||
synopsisStr := "host-catalog"
|
||||
|
||||
return common.SynopsisFunc(c.Func, synopsisStr)
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ func (c *PluginCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "host catalog"
|
||||
synopsisStr := "host-catalog"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "plugin-type", synopsisStr)
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ func (c *StaticCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "host catalog"
|
||||
synopsisStr := "host-catalog"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "static-type", synopsisStr)
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ func (c *Command) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "host set"
|
||||
synopsisStr := "host-set"
|
||||
|
||||
return common.SynopsisFunc(c.Func, synopsisStr)
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ func (c *PluginCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "host set"
|
||||
synopsisStr := "host-set"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "plugin-type", synopsisStr)
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ func (c *StaticCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "host set"
|
||||
synopsisStr := "host-set"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "static-type", synopsisStr)
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ func (c *LdapCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "managed group"
|
||||
synopsisStr := "managed-group"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "ldap-type", synopsisStr)
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ func (c *Command) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "managed group"
|
||||
synopsisStr := "managed-group"
|
||||
|
||||
return common.SynopsisFunc(c.Func, synopsisStr)
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ func (c *OidcCommand) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "managed group"
|
||||
synopsisStr := "managed-group"
|
||||
|
||||
synopsisStr = fmt.Sprintf("%s %s", "oidc-type", synopsisStr)
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ func (c *Command) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "session recording"
|
||||
synopsisStr := "session-recording"
|
||||
|
||||
return common.SynopsisFunc(c.Func, synopsisStr)
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ func (c *Command) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "storage bucket"
|
||||
synopsisStr := "storage-bucket"
|
||||
|
||||
return common.SynopsisFunc(c.Func, synopsisStr)
|
||||
}
|
||||
|
||||
@@ -15,9 +15,10 @@ import (
|
||||
|
||||
func SynopsisFunc(inFunc, resType string) string {
|
||||
if inFunc == "" {
|
||||
return wordwrap.WrapString(fmt.Sprintf("Manage Boundary %ss", resType), base.TermWidth)
|
||||
pluralType := strings.ReplaceAll(resource.Map[resType].PluralString(), "-", " ")
|
||||
return wordwrap.WrapString(fmt.Sprintf("Manage Boundary %s", pluralType), base.TermWidth)
|
||||
}
|
||||
articleType := resType
|
||||
articleType := strings.ReplaceAll(resType, "-", " ")
|
||||
switch resType[0] {
|
||||
case 'a', 'e', 'i', 'o':
|
||||
articleType = fmt.Sprintf("an %s", articleType)
|
||||
|
||||
@@ -143,7 +143,8 @@ func (c *{{ camelCase .SubActionPrefix }}Command) Synopsis() string {
|
||||
return extra
|
||||
}
|
||||
|
||||
synopsisStr := "{{ lowerSpaceCase .ResourceType }}"
|
||||
synopsisStr := "{{ .ResourceType }}"
|
||||
|
||||
{{ if .SubActionPrefix }}
|
||||
synopsisStr = fmt.Sprintf("%s %s", "{{ kebabCase .SubActionPrefix }}-type", synopsisStr)
|
||||
{{ end }}
|
||||
|
||||
Reference in new issue
Block a user