Skip to content

Commit ebfb330

Browse files
author
vilmibm
committed
started on this but it felt pointless
1 parent e6ff77c commit ebfb330

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

pkg/cmd/repo/create/create.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
432451
func interactiveGitIgnore(client *http.Client, hostname string) (string, error) {
433452

434453
var addGitIgnore bool

0 commit comments

Comments
 (0)