cli

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 4 Imported by: 0

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.

func (*CLI) Execute

func (cli *CLI) Execute() error

Execute the base command to validate its configuration and launch subcommand specified in command line.

Jump to

Keyboard shortcuts

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