File tree Expand file tree Collapse file tree 2 files changed +140
-191
lines changed Expand file tree Collapse file tree 2 files changed +140
-191
lines changed Original file line number Diff line number Diff line change @@ -29,19 +29,14 @@ var createSpeakerCmd = &cobra.Command{
2929 Use : "speaker" ,
3030 Short : "Creates a new speaker for an event" ,
3131 Long : `Creates a new speaker for an event.
32- You can provide the speaker's name as an argument to this command, but it must be the "cleaned" name.
3332 ` ,
34- Example : ` devopsdays-cli create speaker george-bluth
33+ Example : ` devopsdays-cli create speaker
3534 devopsdays-cli create speaker --city new-york
36- devopsdays-cli create speaker george-bluth -c "New York" --year "2017"` ,
35+ devopsdays-cli create speaker -c "New York" --year "2017"` ,
3736
3837 Args : cobra .MaximumNArgs (1 ),
3938 Run : func (cmd * cobra.Command , args []string ) {
40- if len (args ) > 0 {
41- create .CreateSpeaker (args [0 ], "" , "" )
42- } else {
43- create .CreateSpeaker ("" , "" , "" )
44- }
39+ create .Speaker ("" , City , Year )
4540 },
4641}
4742
You can’t perform that action at this time.
0 commit comments