INNER CODE UNIT · Go
err
ankitpokhrel/jira-cli · internal/cmdcommon/create.go:156
err := survey.Ask([]*survey.Question{GetNextAction()}, &answer)
if err != nil {
return err
}
switch answer.Action {
case ActionCancel:
cmdutil.Failed("Action aborted")
case ActionMetadata:
ans := struct{ Metadata []string }{}
err := survey.Ask(GetMetadata(), &ans)
if err != nil {
return err
}
if len(ans.Metadata) > 0 {
qs := GetMetadataQuestions(ans.Metadata)
ans := struct {