Skip to content

Commit

Permalink
cmd: update exampleConfig description and help
Browse files Browse the repository at this point in the history
  • Loading branch information
markuskont committed Jan 8, 2021
1 parent 7b203d6 commit 2d2dca6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cmd/exampleConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@ import (
// exampleConfigCmd represents the exampleConfig command
var exampleConfigCmd = &cobra.Command{
Use: "exampleConfig",
Short: "A brief description of your command",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Short: "Generate example configuration file",
Long: `Example usage:
gopherCap --config example.yml exampleConfig`,
Run: func(cmd *cobra.Command, args []string) {
logrus.Infof("Writing config to %s", cfgFile)
viper.WriteConfigAs(cfgFile)
Expand Down

0 comments on commit 2d2dca6

Please sign in to comment.