cmdargslen

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(args []string, min, max int) error

Validate the number of arguments

func ValidateCmd

func ValidateCmd(argsMin, argsMax int) func(cmd *cobra.Command, args []string) error

ValidateCmd validate the number of arguments on a cobra command

Types

This section is empty.

Jump to

Keyboard shortcuts

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