Documentation ¶
Index ¶
- Variables
- func AddCommand(parent *cobra.Command, action func([]string) error, use string, help string, ...)
- func DefaultPreRun(cmd *cobra.Command, args []string) (err error)
- func ExitWithResult(result any, key string, message string)
- func ExitWithResults[T any](results []T, key, noun, verb, singular, plural string)
- func ExitWithStatus(err error)
- func MakeGroupCommand(parentGroup *cobra.Group, use string, help string) *cobra.Command
- func OmitEmpty(v any) (isEmpty bool)
- func PrintIndented(v any)
- func PrintItem(msg string)
- func PrintProgress(msg string)
- func ProjectPreRun(cmd *cobra.Command, args []string) (err error)
- func ReadJSONFile[T any](sourcePath string) (obj T, err error)
- func StandalonePreRun(cmd *cobra.Command, _ []string) error
- func WriteJSONFile(path string, object map[string]any) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Descope *client.DescopeClient
View Source
var Flags struct { Json bool }
Functions ¶
func AddCommand ¶
func ExitWithResult ¶ added in v0.8.2
func ExitWithResults ¶ added in v0.8.2
func ExitWithStatus ¶ added in v0.8.2
func ExitWithStatus(err error)
func MakeGroupCommand ¶
func PrintIndented ¶ added in v0.8.2
func PrintIndented(v any)
func PrintProgress ¶ added in v0.8.2
func PrintProgress(msg string)
func ReadJSONFile ¶ added in v0.8.11
func StandalonePreRun ¶ added in v0.8.11
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.