Versions in this module Expand all Collapse all v0 v0.31.0 Apr 22, 2026 Changes in this version + const ActionCreate + const ActionDeactivate + const ActionDelete + const ActionGet + const ActionList + const ActionReactivate + const ActionUpdate + const ActionUpdateUnsafe + const ExitCodeError + const ExitCodeSuccess + const FlexColumnWidthFive + const FlexColumnWidthFour + const FlexColumnWidthOne + const FlexColumnWidthThree + const FlexColumnWidthTwo + const InputNameFQN + const InputNameFQNUpdated + var ErrPrinterExpectsCommand = errors.New("printer expects a command") + func AggregateClientIDs(reqCtx []*policy.RequestContext) []string + func AskForInput(message string) string + func AskForSecret(message string) string + func CommaSeparated(values []string) string + func ConfirmAction(action, resource, id string, force bool) + func ConfirmActionSubtext(action, resource, id, subtext string, force bool) + func ConfirmTextInput(action, resource, inputName, shouldMatchValue string) + func ConstructMetadata(m *common.Metadata) map[string]string + func DebugJSON(msg string) interface + func DebugMessage(msg string) string + func ErrorJSON(msg string, err error) interface + func ErrorMessage(msg string, err error) string + func ExitWithError(errMsg string, err error) + func ExitWithNotFoundError(errMsg string, err error) + func ExitWithWarning(warnMsg string) + func FooterMessage(msg string) string + func GetJSONInput(data string) (string, error) + func GetSimpleObligationValues(v []*policy.ObligationValue) []string + func GetSimpleRegisteredResourceActionAttributeValues(v []*policy.RegisteredResourceValue_ActionAttributeValue) []string + func GetSimpleRegisteredResourceValues(v []*policy.RegisteredResourceValue) []string + func GetState(cmd *cobra.Command) common.ActiveStateEnum + func KeyAlgToEnum(alg string) (policy.Algorithm, error) + func KeyEnumToAlg(enum policy.Algorithm) (string, error) + func MessageJSON(status string, msg string) interface + func NewTable(cols ...table.Column) table.Model + func NewTabular(rows ...[]string) table.Model + func NewUUIDColumn() table.Column + func PrettyList(values []string) string + func PrintSuccessTable(cmd *cobra.Command, id string, t table.Model) + func ReadFromArgsOrPipe(args []string, pipe *os.File) []byte + func ReadFromFile(filePath string) []byte + func ReadFromPipe(in *os.File) []byte + func SuccessJSON(msg string) interface + func SuccessMessage(msg string) string + func TermWidth() int + func WarningJSON(msg string) interface + func WarningMessage(msg string) string + func WithListPaginationFooter(t table.Model, p *policy.PageResponse) table.Model + func WithPrintJSON() cliVariadicOption + type Cli struct + FlagHelper *flagHelper + Flags *flagHelper + func New(cmd *cobra.Command, args []string, options ...cliVariadicOption) *Cli + func (c *Cli) Cmd() *cobra.Command + func (c *Cli) Context() context.Context + func (c *Cli) ExitWith(styledMsg string, jsonMsg interface{}, code int, w io.Writer) + func (c *Cli) ExitWithError(errMsg string, err error) + func (c *Cli) ExitWithJSON(v interface{}, code int) + func (c *Cli) ExitWithMessage(msg string, code int) + func (c *Cli) ExitWithNotFoundError(errMsg string, err error) + func (c *Cli) ExitWithSuccess(msg string) + func (c *Cli) ExitWithWarning(warnMsg string) + func (c *Cli) SetJSONOutput(enabled bool) + type Color struct + Background lipgloss.CompleteAdaptiveColor + Foreground lipgloss.CompleteAdaptiveColor + func ColorYellow() Color + type FlagsStringSliceOptions struct + Max int + Min int + type Printer struct + type SimpleAttribute struct + Active string + AllowTraversal string + ID string + Metadata map[string]string + Name string + Namespace string + Rule string + Values []string + func GetSimpleAttribute(a *policy.Attribute) SimpleAttribute + type SimpleAttributeValue struct + Active string + FQN string + ID string + Metadata map[string]string + func GetSimpleAttributeValue(v *policy.Value) SimpleAttributeValue