Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "pimctl", Short: "CLI to manage Azure PIM roles and assignments", Long: "A CLI tool to manage Azure Privileged Identity Management (PIM) roles and assignments", Version: fmt.Sprintf("%s (%s)", build.Version, build.Date), DisableAutoGenTag: true, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { command := getCommand(cmd.CommandPath()) switch command { case "login", "account clear", "account show": return nil } if !isLoggedIn(cmd.Context()) { return fmt.Errorf("not logged in, run 'login' to continue") } return nil }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.