Skip to content

Commit

Permalink
refactor: Delete unused code (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
draftcode authored Jun 1, 2023
1 parent 59101d1 commit 4a83c75
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 12 deletions.
5 changes: 0 additions & 5 deletions cmd/av/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ var prCmd = &cobra.Command{
}

var prCreateFlags struct {
Base string
Draft bool
Force bool
NoPush bool
Expand Down Expand Up @@ -101,10 +100,6 @@ func init() {
prCmd.AddCommand(prCreateCmd)

// av pr create
prCreateCmd.Flags().StringVar(
&prCreateFlags.Base, "base", "",
"base branch to create the pull request against",
)
prCreateCmd.Flags().BoolVar(
&prCreateFlags.Draft, "draft", false,
"create the pull request in draft mode",
Expand Down
Binary file added docs/docs
Binary file not shown.
3 changes: 2 additions & 1 deletion internal/reorder/cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package reorder
import (
"encoding/json"
"fmt"
"github.com/aviator-co/av/internal/meta"
"io"

"github.com/aviator-co/av/internal/meta"

"github.com/aviator-co/av/internal/git"
)

Expand Down
3 changes: 2 additions & 1 deletion internal/reorder/cmds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package reorder

import (
"encoding/json"
"github.com/stretchr/testify/require"
"testing"

"github.com/stretchr/testify/require"
)

func TestState(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion internal/reorder/pick_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package reorder

import (
"bytes"
"github.com/aviator-co/av/internal/meta/jsonfiledb"
"testing"

"github.com/aviator-co/av/internal/meta/jsonfiledb"

"github.com/aviator-co/av/internal/git"
"github.com/aviator-co/av/internal/git/gittest"
"github.com/stretchr/testify/assert"
Expand Down
5 changes: 3 additions & 2 deletions internal/reorder/reorder.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package reorder

import (
"emperror.dev/errors"
"fmt"
"github.com/aviator-co/av/internal/utils/colors"
"os"

"emperror.dev/errors"
"github.com/aviator-co/av/internal/utils/colors"
)

// Reorder executes a reorder.
Expand Down
3 changes: 2 additions & 1 deletion internal/reorder/reorder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package reorder_test

import (
"fmt"
"testing"

"github.com/aviator-co/av/internal/git"
"github.com/aviator-co/av/internal/git/gittest"
"github.com/aviator-co/av/internal/meta/jsonfiledb"
"github.com/aviator-co/av/internal/reorder"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
)

func TestReorder(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion internal/reorder/stackbranch.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package reorder

import (
"strings"

"github.com/aviator-co/av/internal/git"
"github.com/aviator-co/av/internal/meta"
"strings"

"github.com/spf13/pflag"
)
Expand Down

0 comments on commit 4a83c75

Please sign in to comment.