Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
// CommandName invokes your custom CLI together with any potential subcommands.
// Treat it as the parent command.
// E.g. for CommandName _klio_ the command line execution will start with `klio`.
CommandName string `validate:"required"`
// Description of your CLI - describe its purpose, when to use it.
Description string
// Version of your CLI release.
// There is no restriction on version naming, although a version tag must be provided.
// We recommend to use semver convention while tagging versions.
Version string `validate:"required"`
// DefaultRegistry url will be used anytime a user fails to provide explicit registry in `get` subcommand.
DefaultRegistry string `validate:"url"`
}
CLI defines a custom-made cli TODO: launch the validation.
Click to show internal directories.
Click to hide internal directories.