{"modulePath":"github.com/algolia/cli","version":"v1.18.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package validators\n\n## Functions\n\n```go\nfunc ApplicationIDExists(cfg config.IConfig) func(appID interface{}) error\n```\nApplicationIDExists validates that a string is a valid Application ID.\n\n```go\nfunc AtLeastNArgs(n int) cobra.PositionalArgs\n```\nAtLeastNArgs is a validator for commands to print an error with a custom message followed by usage, flags and available commands when too few argument(s) are provided\n\n```go\nfunc ExactArgs(n int) cobra.PositionalArgs\n```\nExactArgs is the same as ExactArgsWithMsg but displays a default error message\n\n```go\nfunc ExactArgsWithMsg(n int, msg string) cobra.PositionalArgs\n```\nExactArgs is a validator for commands to print an error with a custom message followed by usage, flags and available commands when too few/much arguments are provided\n\n```go\nfunc NoArgs() cobra.PositionalArgs\n```\nNoArgs is a validator for commands to print an error when an argument is provided\n\n```go\nfunc PathExists(input string) error\n```\nPathExists validates that a string is a path that exists.\n\n```go\nfunc ProfileNameExists(cfg config.IConfig) func(profileName interface{}) error\n```\nProfileNameExists validates that a string is a valid profile name.\n\n","path":"github.com/algolia/cli/pkg/validators","name":"validators","synopsis":"","isRedistributable":true}
