Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
973 B
Go
Raw Permalink Normal View History

// Copyright IBM Corp. 2020, 2026
// SPDX-License-Identifier: BUSL-1.1
2023-02-02 17:15:17 -08:00
package credentialstorescmd
import (
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/cmd/base"
)
func (c *StaticCommand) extraStaticHelpFunc(helpMap map[string]func() string) string {
var helpStr string
switch c.Func {
case "create":
helpStr = base.WrapForHelpText([]string{
"Usage: threshold credential-stores create static [options] [args]",
"",
" Create a static-type credential store. Example:",
"",
` $ threshold credential-stores create static -scope-id p_1234567890`,
"",
"",
})
case "update":
helpStr = base.WrapForHelpText([]string{
"Usage: threshold credential-stores update static [options] [args]",
"",
" Update a static-type credential store given its ID. Example:",
"",
` $ threshold credential-stores update static -name devops -description "For DevOps usage"`,
"",
"",
})
}
return helpStr + c.Flags().Help()
}