Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from survey to bubbletea #104

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions cmd/create_branch/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import (
"github.com/InditexTech/gh-sherpa/internal/config"
"github.com/InditexTech/gh-sherpa/internal/gh"
"github.com/InditexTech/gh-sherpa/internal/git"
"github.com/InditexTech/gh-sherpa/internal/interactive"
"github.com/InditexTech/gh-sherpa/internal/issue_trackers"
"github.com/charmbracelet/bubbletea"
"github.com/InditexTech/gh-sherpa/internal/logging"
"github.com/InditexTech/gh-sherpa/internal/use_cases"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -58,7 +57,7 @@ func runCommand(cmd *cobra.Command, _ []string) (err error) {
return err
}

userInteraction := &interactive.UserInteractionProvider{}
userInteraction := &bubbletea.Program{}

isInteractive := !flags.UseDefaultValues

Expand Down
4 changes: 2 additions & 2 deletions cmd/create_pull_request/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/InditexTech/gh-sherpa/internal/config"
"github.com/InditexTech/gh-sherpa/internal/gh"
"github.com/InditexTech/gh-sherpa/internal/git"
"github.com/InditexTech/gh-sherpa/internal/interactive"
"github.com/charmbracelet/bubbletea"
"github.com/InditexTech/gh-sherpa/internal/issue_trackers"
"github.com/InditexTech/gh-sherpa/internal/logging"
"github.com/InditexTech/gh-sherpa/internal/use_cases"
Expand Down Expand Up @@ -61,7 +61,7 @@ func runCommand(cmd *cobra.Command, _ []string) error {
return err
}

userInteraction := &interactive.UserInteractionProvider{}
userInteraction := &bubbletea.Program{}

isInteractive := !flags.UseDefaultValues

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/InditexTech/gh-sherpa
go 1.21

require (
github.com/AlecAivazis/survey/v2 v2.3.7
github.com/andygrunwald/go-jira v1.16.0
github.com/charmbracelet/bubbletea v0.23.2
github.com/cli/go-gh/v2 v2.4.0
github.com/go-playground/validator/v10 v10.16.0
github.com/jwalton/gchalk v1.3.0
Expand Down
149 changes: 0 additions & 149 deletions internal/branches/interactive.go

This file was deleted.

181 changes: 0 additions & 181 deletions internal/interactive/interactive.go

This file was deleted.

Loading