Skip to content

Commit

Permalink
update cmd descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mesin authored and florianrusch committed Oct 26, 2023
1 parent c0389ca commit 0ddde6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
9 changes: 2 additions & 7 deletions cmd/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@ import (
// backupCmd represents the backup command
var backupCmd = &cobra.Command{
Use: "backup",
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: "Execute the backup.",
Long: `Execute the backup. Used config can be overridden by providing arguments.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("backup called")
},
Expand Down
9 changes: 2 additions & 7 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@ import (
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "lb",
Short: "A brief description of your application",
Long: `A longer description that spans multiple lines and likely contains
examples and usage of using your application. 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: "Perform backups from any source to any destination.",
Long: `Lifeboat is a general purpose backup tool which supports backups for arbitrary sources and destinations.`,
}

// Execute adds all child commands to the root command and sets flags appropriately.
Expand Down

0 comments on commit 0ddde6b

Please sign in to comment.