Documentation ¶
Overview ¶
Package cmd contains the Cobra CLI.
Index ¶
- func ArgToTool(arg string, os string, arch string, versionAllowed bool) (tool api.Tool, err error)
- func ArgsToTools(args []string, os string, arch string, versionAllowed bool) ([]api.Tool, error)
- func CalculateSHA256(body io.Reader) (sha string, err error)
- func Execute()
- func NewRootCmd(toolctlWriter io.Writer, localAPIFS afero.Fs) *cobra.Command
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgsToTools ¶
ArgsToTools converts a list of command line arguments to a list of tools.
func CalculateSHA256 ¶
CalculateSHA256 calculates the SHA256 hash of an io.Reader.
Types ¶
type VersionInfo ¶
VersionInfo holds the version information for a build of toolctl.
Click to show internal directories.
Click to hide internal directories.