command
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 17, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Banner
This serves as an example to create a CLI with a custom banner.
Code
Output:
$ go run examples/banner/main.go
I am the root command!
Help menu:
$ go run examples/banner/main.go --help
███ █████
░░░ ░░███
████████ ████ ██████ ██████ ██████ ██████ ░███ █████ ██████
░░███░░███░░███ ███░░███ ███░░███ ███░░███ ░░░░░███ ░███░░███ ███░░███
░███ ░░░ ░███ ░███ ░░░ ░███████ ░███ ░░░ ███████ ░██████░ ░███████
░███ ░███ ░███ ███░███░░░ ░███ ███ ███░░███ ░███░░███ ░███░░░
█████ █████░░██████ ░░██████ ░░██████ ░░████████ ████ █████░░██████
░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░ ░░░░░ ░░░░░░
v0.1.0 - CLI with custom banner
This is an example CLI created with a custom banner.
Flags:
--help Get help for the 'cli' command.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.