Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "shar", Short: "SHAR command line application", Long: ``, PersistentPreRun: func(cmd *cobra.Command, args []string) { if flag.Value.Json { output.Current = &output.Json{} } else { output.Current = &output.Text{} } output.Current.SetCmd(cmd) cfg := &config{} if err := env.Parse(cfg); err != nil { panic(fmt.Sprintf("parse environment variables: %s", err.Error())) } server := &flag.Value.Server if cfg.NatsURL != "" { *server = cfg.NatsURL } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.