command

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logw io.Writer) (rootCmd *cobra.Command)

New returns a new tiap root command, ready for use with its CLI flags already registered.

func RegisterFlags

func RegisterFlags(cmd *cobra.Command) error

RegisterFlags registers the CLI flags for the tiap (sub)command, returning nil. In case of failure, Register returns a non-nil error instead.

func Run

func Run(cmd *cobra.Command, args []string, logw io.Writer) error

Run the tiap (sub)command with the supplied arguments, doing the work and returning nil. If the command fails, it returns a non-nil error instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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