File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -266,6 +266,20 @@ func createRun(opts *CreateOptions) error {
266266 return err
267267 }
268268
269+ var useStack bool
270+ err = prompt .SurveyAskOne (
271+ & survey.Confirm {
272+ Message : "Initialize this repository using a stack?" ,
273+ Default : false ,
274+ }, & useStack )
275+ if err != nil {
276+ return err
277+ }
278+
279+ if useStack {
280+ return stackFlow (opts )
281+ }
282+
269283 // GitIgnore and License templates not added when a template repository
270284 // is passed, or when the confirm flag is set.
271285 if opts .Template == "" && opts .IO .CanPrompt () && ! opts .ConfirmSubmit {
@@ -429,6 +443,11 @@ func createRun(opts *CreateOptions) error {
429443 return nil
430444}
431445
446+ func stackFlow (opts * CreateOptions ) error {
447+ fmt .Printf ("DBG %#v\n " , opts )
448+ return nil
449+ }
450+
432451func interactiveGitIgnore (client * http.Client , hostname string ) (string , error ) {
433452
434453 var addGitIgnore bool
You can’t perform that action at this time.
0 commit comments