cobrax

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package cobrax contains helpers to use with github.com/spf13/cobra.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequireFlagOrCommand = errors.New("require flag or command")
)

Errors.

Functions

func RequireFlagOrCommand

func RequireFlagOrCommand(_ *cobra.Command, _ []string) error

RequireFlagOrCommand should be used as cobra.Command.RunE for "empty" commands which are just a containers for subcommands.

Types

This section is empty.

Jump to

Keyboard shortcuts

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