Skip to content

Commit

Permalink
Merge pull request #119 from vitessio/easier-install
Browse files Browse the repository at this point in the history
Change module name
  • Loading branch information
frouioui authored Oct 9, 2024
2 parents 952cd01 + 4e52660 commit 7bccfc3
Show file tree
Hide file tree
Showing 68 changed files with 226 additions and 226 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module vitess.io/vitess-releaser
module github.com/vitessio/vitess-releaser

go 1.21.0

Expand Down
12 changes: 6 additions & 6 deletions go/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ import (
"time"

"github.com/spf13/cobra"
"vitess.io/vitess-releaser/go/cmd/flags"
"vitess.io/vitess-releaser/go/interactive"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/git"
"vitess.io/vitess-releaser/go/releaser/github"
"vitess.io/vitess-releaser/go/releaser/utils"
"github.com/vitessio/vitess-releaser/go/cmd/flags"
"github.com/vitessio/vitess-releaser/go/interactive"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/git"
"github.com/vitessio/vitess-releaser/go/releaser/github"
"github.com/vitessio/vitess-releaser/go/releaser/utils"
)

const VERSION = "v1.0"
Expand Down
10 changes: 5 additions & 5 deletions go/interactive/boolean_menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
)

type boolMsg struct {
name string
msg []string
msg []string
}

func newBooleanMenu(ctx context.Context, rawMsg []string, stepName string, setInverse func(), isDone, ignore bool) *ui.MenuItem {
state := releaser.UnwrapState(ctx)

act := func(mi *ui.MenuItem) (*ui.MenuItem, tea.Cmd ) {
act := func(mi *ui.MenuItem) (*ui.MenuItem, tea.Cmd) {
return mi, func() tea.Msg {
return boolMsg{name: stepName, msg: rawMsg}
}
Expand Down Expand Up @@ -74,4 +74,4 @@ func newBooleanMenu(ctx context.Context, rawMsg []string, stepName string, setIn

Ignore: ignore,
}
}
}
8 changes: 4 additions & 4 deletions go/interactive/check_and_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/prerequisite"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/prerequisite"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

type checkAndAdd string
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/code_freeze/code_freeze.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/code_freeze"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/code_freeze"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func CodeFreezeMenuItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/code_freeze/copy_branch_protection.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/code_freeze"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/code_freeze"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func CopyBranchProtectionMenuItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/code_freeze/create_github_milestones.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/code_freeze"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/code_freeze"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

type createMilestone string
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/code_freeze/create_new_labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/code_freeze"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/code_freeze"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func CreateNewLabelsMenuItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/code_freeze/update_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/code_freeze"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/code_freeze"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func UpdateSnapshotOnMainMenuItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/general_prereq.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/prerequisite"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/prerequisite"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

type (
Expand Down
14 changes: 7 additions & 7 deletions go/interactive/main_menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ import (
"context"
"fmt"
tea "github.com/charmbracelet/bubbletea"
"github.com/vitessio/vitess-releaser/go/interactive/code_freeze"
"github.com/vitessio/vitess-releaser/go/interactive/post_release"
"github.com/vitessio/vitess-releaser/go/interactive/pre_release"
"github.com/vitessio/vitess-releaser/go/interactive/release"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/github"
"os"
"vitess.io/vitess-releaser/go/interactive/code_freeze"
"vitess.io/vitess-releaser/go/interactive/post_release"
"vitess.io/vitess-releaser/go/interactive/pre_release"
"vitess.io/vitess-releaser/go/interactive/release"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/github"
)

func blankLineMenu() *ui.MenuItem {
Expand Down
14 changes: 7 additions & 7 deletions go/interactive/menu_item_constructors.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ package interactive
import (
"context"

"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/post_release"
"vitess.io/vitess-releaser/go/releaser/pre_release"
"vitess.io/vitess-releaser/go/releaser/prerequisite"
"vitess.io/vitess-releaser/go/releaser/release"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/post_release"
"github.com/vitessio/vitess-releaser/go/releaser/pre_release"
"github.com/vitessio/vitess-releaser/go/releaser/prerequisite"
"github.com/vitessio/vitess-releaser/go/releaser/release"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func checkSummaryMenuItem(ctx context.Context) *ui.MenuItem {
Expand Down
6 changes: 3 additions & 3 deletions go/interactive/post_release/close_issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func CloseIssueItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/pre_release/create_release_pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/pre_release"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/pre_release"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func CreateReleasePRMenuItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/pre_release/vtop_bump_version_on_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/steps"

"vitess.io/vitess-releaser/go/releaser/pre_release"
"github.com/vitessio/vitess-releaser/go/releaser/pre_release"
)

func VtopBumpMainVersionMenuItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/pre_release/vtop_create_branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/steps"

"vitess.io/vitess-releaser/go/releaser/pre_release"
"github.com/vitessio/vitess-releaser/go/releaser/pre_release"
)

func VtopCreateBranchMenuItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/pre_release/vtop_update_golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/steps"

"vitess.io/vitess-releaser/go/releaser/pre_release"
"github.com/vitessio/vitess-releaser/go/releaser/pre_release"
)

// This step prevents any mismatch of the Golang version between Vitess and Vitess-Operator.
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/release/back_to_dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/release"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/release"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func BackToDevModeItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/release/back_to_dev_base_branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/release"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/release"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func BackToDevModeBaseBranchItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/release/close_milestone.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/release"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/release"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func CloseMilestoneItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/release/java.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/release"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/release"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func JavaReleaseItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/release/merge_release_pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/release"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/release"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func MergeReleasePRItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/release/release_notes_to_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/release"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/release"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func ReleaseNotesOnMainItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/release/release_notes_to_release_branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/release"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/release"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func ReleaseNotesOnReleaseBranchItem(ctx context.Context) *ui.MenuItem {
Expand Down
8 changes: 4 additions & 4 deletions go/interactive/release/tag_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (
"context"

tea "github.com/charmbracelet/bubbletea"
"vitess.io/vitess-releaser/go/interactive/ui"
"vitess.io/vitess-releaser/go/releaser"
"vitess.io/vitess-releaser/go/releaser/release"
"vitess.io/vitess-releaser/go/releaser/steps"
"github.com/vitessio/vitess-releaser/go/interactive/ui"
"github.com/vitessio/vitess-releaser/go/releaser"
"github.com/vitessio/vitess-releaser/go/releaser/release"
"github.com/vitessio/vitess-releaser/go/releaser/steps"
)

func TagReleaseItem(ctx context.Context) *ui.MenuItem {
Expand Down
Loading

0 comments on commit 7bccfc3

Please sign in to comment.