Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdTrust = cli.NewCmd[Command](cli.CmdRoot, "trust", func(cmd *cobra.Command) { cfg := cli.ConfigFromCmd(cmd) cmd.Flags().StringVarP(&cfg.Trust.Org, "org", "o", "", "Organization to trust.") cmd.Flags().BoolVar(&cfg.Trust.NoSudo, "no-sudo", false, "Disable sudo prompts.") cmd.Flags().StringVarP(&cfg.Trust.Realm, "realm", "r", "", "Realm to trust.") cmd.Flags().StringSliceVar(&cfg.Trust.Stores, "trust-stores", []string{"homebrew", "nss", "system"}, "Trust stores to update.") cmd.MarkFlagsRequiredTogether("org", "realm") })
View Source
var CmdTrustAudit = cli.NewCmd[Audit](CmdTrust, "audit", func(cmd *cobra.Command) { cfg := cli.ConfigFromCmd(cmd) cmd.Flags().StringVarP(&cfg.Trust.Org, "org", "o", "", "Organization to trust.") cmd.Flags().StringVarP(&cfg.Trust.Realm, "realm", "r", "", "Realm to trust.") cmd.Flags().StringSliceVar(&cfg.Trust.Stores, "trust-stores", []string{"homebrew", "nss", "system"}, "Trust stores to update.") cmd.MarkFlagsRequiredTogether("org", "realm") })
View Source
var CmdTrustClean = cli.NewCmd[Clean](CmdTrust, "clean", func(cmd *cobra.Command) { cfg := cli.ConfigFromCmd(cmd) cmd.Flags().StringSliceVar(&cfg.Trust.Clean.States, "cert-states", []string{"expired"}, "Cert states to clean.") cmd.Flags().StringVarP(&cfg.Trust.Org, "org", "o", "", "Organization to trust.") cmd.Flags().BoolVar(&cfg.Trust.NoSudo, "no-sudo", false, "Disable sudo prompts.") cmd.Flags().StringVarP(&cfg.Trust.Realm, "realm", "r", "", "Realm to trust.") cmd.Flags().StringSliceVar(&cfg.Trust.Stores, "trust-stores", []string{"homebrew", "nss", "system"}, "Trust stores to update.") cmd.MarkFlagsRequiredTogether("org", "realm") cmd.Hidden = true })
Functions ¶
Types ¶
type SudoManager ¶ added in v0.0.8
type SudoManager struct { truststore.CmdFS NoSudo bool AroundSudo func(sudoExec func()) }
Click to show internal directories.
Click to hide internal directories.