File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -137,14 +137,19 @@ func writeBobfileIfNotExists(content Bobfile) error {
137137}
138138
139139func initEntry () * cobra.Command {
140+ return initEntryWithHidden (false )
141+ }
142+
143+ func initEntryWithHidden (hidden bool ) * cobra.Command {
140144 github := false
141145 gitLab := false
142146 docker := false
143147
144148 cmd := & cobra.Command {
145- Use : "init" ,
146- Short : "Initializes this project with a default turbobob.json" ,
147- Args : cobra .NoArgs ,
149+ Use : "init" ,
150+ Short : "Initializes this project with a default turbobob.json" ,
151+ Args : cobra .NoArgs ,
152+ Hidden : hidden ,
148153 Run : func (cmd * cobra.Command , args []string ) {
149154 if github {
150155 osutil .ExitIfError (writeGitHubActionsBoilerplate ())
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ func main() {
5353
5454 app .AddCommand (openProjectHomepageEntrypoint ())
5555
56+ // hidden "$ bob init" for convenience (it exists as non-hidden under tools)
57+ app .AddCommand (initEntryWithHidden (true ))
58+
5659 app .AddCommand (toolsEntry ()) // namespace for less often needed tools
5760 } else {
5861 app .AddCommand (buildInsideEntry ())
You can’t perform that action at this time.
0 commit comments