command

command
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Command is an example CLI where that uses sub-commands. The program shows how to configure commands, command options, and then invoke the parsing and execution of a command.

The two commands are very similar, but show how to configure shared flags through struct embedding, use different types for options, and how to use both optional and required arguments.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳