Commit graph

5 commits

Author SHA1 Message Date
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