Documentation
¶
Overview ¶
Package cmd contains mindl CLI command implementations.
Index ¶
- Variables
- func CommonBootstrap(_ context.Context, _, stderr io.Writer, args []string) error
- func CommonDetail(_ context.Context, stdout, stderr io.Writer, args []string) error
- func CommonList(_ context.Context, stdout, _ io.Writer, _ []string) error
- func DebugTemplate(_ context.Context, stdout, _ io.Writer, args []string) error
- func DebugTemplateData(_ context.Context, stdout, _ io.Writer, _ []string) error
- func Download(ctx context.Context, _, stderr io.Writer, args []string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Common = simplcli.SimplCLI{ SubCmds: map[string]simplcli.SubCmd{ "list": {CommonList, "List available common tools"}, "detail": {CommonDetail, "Output details of common tools"}, "bootstrap": {CommonBootstrap, "Bootstrap a common tool"}, }, }
Common dispatches common subcommands.
View Source
var Debug = simplcli.SimplCLI{ SubCmds: map[string]simplcli.SubCmd{ "template-data": {DebugTemplateData, "Print the template data with example values"}, "template": {DebugTemplate, "Template the given string with example values"}, }, }
Debug dispatches debug subcommands.
View Source
var Main = simplcli.SimplCLI{ SubCmds: map[string]simplcli.SubCmd{ "debug": {Debug.Run, "Debugging commands"}, "download": {Download, "Download a tool"}, "common": {Common.Run, "Show available common tools"}, }, }
Main dispatches CLI commands.
Functions ¶
func CommonBootstrap ¶
CommonBootstrap writes the boilerplate to ensure a common tool to Makefile.
func CommonDetail ¶
CommonDetail writes the details of the given tools to stdout.
func CommonList ¶
CommonList writes the list of known common tools to stdout.
func DebugTemplate ¶
DebugTemplate renders text as a template and writes the result to out.
func DebugTemplateData ¶
DebugTemplateData writes template data as JSON to out.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.