Skip to content

Commit 4e602b2

Browse files
committed
Add help files for show talk
Signed-off-by: Matt Stratton <[email protected]>
1 parent 8b820bd commit 4e602b2

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

README.e.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ brew install devopsdays/tap/devopsdays-cli
4949

5050
#### $ {{exec "devopsdays-cli" "create" "sponsor" "--help"| color "sh"}}
5151

52+
#### $ {{exec "devopsdays-cli" "show" "speaker" "--help"| color "sh"}}
53+
54+
#### $ {{exec "devopsdays-cli" "show" "talk" "--help"| color "sh"}}
55+
5256

5357
# Reference
5458

cmd/talk.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,15 @@ to quickly create a Cobra application.`,
7272
},
7373
}
7474

75-
// showTalkCmd represents the "talk show" command
75+
// showTalkCmd represents the "show talk" command
7676
var showTalkCmd = &cobra.Command{
7777
Use: "talk",
7878
Short: "Show a talk from an event",
79-
Long: `A longer description that spans multiple lines and likely contains examples
80-
and usage of using your command. For example:
81-
82-
Cobra is a CLI library for Go that empowers applications.
83-
This application is a tool to generate the needed files
84-
to quickly create a Cobra application.`,
79+
Long: `Show a speaker from an event.
80+
`,
81+
Example: ` devopsdays-cli show talk
82+
devopsdays-cli show talk --city new-york --year 2017 --all
83+
devopsdays-cli show talk -c "New York" --year "2017"`,
8584
Run: func(cmd *cobra.Command, args []string) {
8685
// TODO: Work your own magic here
8786
showTalkPrompt(City, Year)
@@ -105,7 +104,7 @@ func init() {
105104
removeTalkCmd.Flags().StringVarP(&Year, "year", "y", "", "year to use")
106105
showTalkCmd.Flags().StringVarP(&City, "city", "c", "", "city to use")
107106
showTalkCmd.Flags().StringVarP(&Year, "year", "y", "", "year to use")
108-
showTalkCmd.Flags().BoolVarP(&All, "all", "a", false, "show all")
107+
showTalkCmd.Flags().BoolVarP(&All, "all", "a", false, "show all NOT IMPLEMENTED")
109108

110109
}
111110

0 commit comments

Comments
 (0)