Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var HelpArgs = []string{"help", "--help", "-h"}
HelpArgs are the strings that indicate a cosmovisor help command.
var RunArgs = []string{"run"}
RunArgs are the strings that indicate a cosmovisor run command.
var Version = "1.1.0"
Version represents Cosmovisor version value. Overwritten during build
var VersionArgs = []string{"version", "--version"}
VersionArgs is the strings that indicate a cosmovisor version command.
Functions ¶
func IsRunCommand ¶
IsRunCommand checks if the given args indicate that a run is desired.
func IsVersionCommand ¶
IsVersionCommand checks if the given args indicate that the version is being requested.
func RunCosmovisorCommand ¶
RunCosmovisorCommand executes the desired cosmovisor command.
func ShouldGiveHelp ¶
ShouldGiveHelp checks the env and provided args to see if help is needed or being requested. Help is needed if either cosmovisor.EnvName and/or cosmovisor.EnvHome env vars aren't set. Help is requested if the first arg is "help", "--help", or "-h".
Types ¶
This section is empty.