Files

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

36 lines
1.0 KiB
Go
Raw Permalink Normal View History

// Copyright IBM Corp. 2020, 2026
2023-02-02 17:15:17 -08:00
// SPDX-License-Identifier: BUSL-1.1
2021-02-23 19:06:39 -05:00
package hostcatalogscmd
import (
"repo.anhonesthost.net/CyberCoveLLC/threshold/internal/cmd/base"
2021-02-23 19:06:39 -05:00
)
func (c *StaticCommand) extraStaticHelpFunc(helpMap map[string]func() string) string {
var helpStr string
switch c.Func {
case "create":
helpStr = base.WrapForHelpText([]string{
"Usage: threshold host-catalogs create static [options] [args]",
2021-02-23 19:06:39 -05:00
"",
" Create a static-type host catalog. Example:",
"",
` $ threshold host-catalogs create static -scope-id p_1234567890 -name prodops -description "Static host-catalog for ProdOps"`,
2021-02-23 19:06:39 -05:00
"",
"",
})
case "update":
helpStr = base.WrapForHelpText([]string{
"Usage: threshold host-catalogs update static [options] [args]",
2021-02-23 19:06:39 -05:00
"",
" Update a static-type host catalog given its ID. Example:",
"",
` $ threshold host-catalogs update static -id hcst_1234567890 -name "devops" -description "Static host-catalog for DevOps"`,
2021-02-23 19:06:39 -05:00
"",
"",
})
}
return helpStr + c.Flags().Help()
}