nested

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 3 Imported by: 0

README

Nested subcommands

This serves as an example to create a CLI with nested subcommands with ricecake.

Code

Output:

$ go run examples/nested/main.go greet morning
Good morning, user!

Help menu:

$ go run examples/nested/main.go --help
CLI v0.1.0 - CLI with nested subcommands

This is an example CLI created with ricecake (contains nested subcommands).

Available commands:

   greet   Greets user.

Flags:

      --help   Get       help for the 'cli' command.
$ go run examples/nested/main.go greet --help
CLI v0.1.0 - CLI with nested subcommands

CLI greet - Greets user.
Available commands:

   morning   Greets user with a good morning message.

Flags:

      --help   Get       help for the 'cli greet' command.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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