Skip to content

Files

Latest commit

fe83cbe · Apr 5, 2024

History

History

echo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 29, 2023
Oct 29, 2023
Oct 29, 2023
Oct 29, 2023
Apr 5, 2024

echo

echo is a basic command showing the usage of a single command with a handler, flags, and positional arguments.

Build & Run

go build

Usage

$ ./echo
Usage: ./echo [OPTIONS] COMMAND

Example command

Options:
  -verbose
        Enable verbose output

Subcommands:
  echo
$ ./echo echo -h
Usage: ./echo echo [OPTIONS]

Options:
  -case string
        Case to use (upper, lower)
  -verbose
        Enable verbose output
$ ./echo echo -verbose -case upper Hello, World!
command echo called with case: upper
HELLO, WORLD!