Documentation
¶
Overview ¶
Package cli provides a base struct for creating CLI applications using Cobra. It contains common functionality for creating CLI applications, such as providing a logger, adding commands and running the root command.
Index ¶
Constants ¶
View Source
const Indentation = ` `
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶
Base is a base struct for creating CLI applications using Cobra. This should be embedded into a struct that contains the specific commands for the CLI application.
func (*Base) AddCommand ¶
AddCommand adds one or more commands to the root command of the CLI application.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package commands contains common commands that can be injected into each domain's CLI application.
|
Package commands contains common commands that can be injected into each domain's CLI application. |
|
Package mcmsv2 provides legacy CLI commands for MCMS (Multi-Chain Management Service) proposals.
|
Package mcmsv2 provides legacy CLI commands for MCMS (Multi-Chain Management Service) proposals. |
Click to show internal directories.
Click to hide internal directories.