Update command descriptions
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
de97a22813
commit
5a64827825
6 changed files with 13 additions and 43 deletions
|
@ -7,15 +7,10 @@ import (
|
|||
)
|
||||
|
||||
var titlesCmd = &cobra.Command{
|
||||
Use: "titles",
|
||||
Use: "titles",
|
||||
Aliases: []string{"t"},
|
||||
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: "Print IDs and titles of zettels",
|
||||
Long: `Print the IDs and titles of all zettels.`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
zets := lib.GetAllZets()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue