validators

package
v1.1.5-beta Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplicationIDExists

func ApplicationIDExists(cfg config.IConfig) func(appID interface{}) error

ApplicationIDExists validates that a string is a valid Application ID.

func ExactArgs

func ExactArgs(num int) cobra.PositionalArgs

ExactArgs is a validator for commands to print an error when the number provided is different than the arguments passed in

func NoArgs

func NoArgs(cmd *cobra.Command, args []string) error

NoArgs is a validator for commands to print an error when an argument is provided

func PathExists

func PathExists(input string) error

PathExists validates that a string is a path that exists.

func ProfileNameExists

func ProfileNameExists(cfg config.IConfig) func(profileName interface{}) error

ProfileNameExists validates that a string is a valid profile name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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