Documentation ¶ Overview ¶ Package runcmd provides support for running Cobra commands in main functions. Index ¶ func Run(cmd *cobra.Command) int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Run ¶ func Run(cmd *cobra.Command) int Run executes a cobra command and handles the results. It is intended for use in `main` functions, supplying the necessary error-handling and exiting the process with an appropriate status. This function returns the appropriate exit status (0 or -1). Types ¶ This section is empty. Source Files ¶ View all Source files runcmd.go Click to show internal directories. Click to hide internal directories.