runcmd

package
v0.0.0-...-0c83327 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package runcmd provides support for running Cobra commands in main functions.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL