Commit graph

8 commits

Author SHA1 Message Date
Ian Walter
784ab4d6eb Reversing cmd creation order so child cmds get added properly 2016-05-03 00:56:28 -04:00
Ian Walter
274ca840ae Fixing removal of filepath.join from writeTemplateToFile 2016-05-02 22:37:29 -04:00
Ian Walter
b4c7072b6b Checking if cmd file exists before trying to create it 2016-04-28 21:23:46 -04:00
Ian Walter
a6cbaf61ec Working on #266: Ability to add nested commands
* Modified `cobra add` command to be able to parse argument into nested command structure
* Modified `createCmdFile` function to accept cmdPath
* Modified cmdFile template to specify package name and to TitleCase
  command names so that they can be accessed by child packages.
* Simplified `writeTemplateToFile` function so that just the file path
  is passed instead of base path and filename.
2016-04-27 22:44:53 -04:00
Sobit Akhmedov
9e39e41fb0 fix typo 2015-11-24 14:46:13 +01:00
Anthony Fok
1e63ad8ed1 Fine-tune the formatting of Cobra’s generated code 2015-11-20 15:28:40 -07:00
spf13
2a6ed7a106 utilize filepath.Join liberally
fixes #176
2015-11-06 11:08:12 -05:00
spf13
a7defd47ef add add command functionality to cobra 2015-10-28 13:43:58 -04:00