refactor: move pkg/api package to /api

This commit is contained in:
Clement Sam 2021-01-29 08:43:18 +00:00
parent a8ac704ccd
commit d52c01a482
98 changed files with 83 additions and 83 deletions

View File

@ -17,7 +17,7 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/api"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/commands/cmdutils"

View File

@ -11,12 +11,12 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdtest"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/xanzy/go-gitlab"
"github.com/google/shlex"

View File

@ -10,8 +10,8 @@ import (
"strconv"
"strings"
"github.com/profclems/glab/api"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/pkg/api"
)
func httpRequest(client *api.Client, config config.Config, hostname string, method string, p string, params interface{}, headers []string) (*http.Response, error) {

View File

@ -7,8 +7,8 @@ import (
"os"
"testing"
"github.com/profclems/glab/api"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/pkg/api"
"github.com/stretchr/testify/assert"
)

View File

@ -11,10 +11,10 @@ import (
"github.com/AlecAivazis/survey/v2"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/internal/glinstance"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
)

View File

@ -6,10 +6,10 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/internal/glinstance"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
)

View File

@ -8,7 +8,7 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/api"
"github.com/profclems/glab/pkg/httpmock"
"github.com/profclems/glab/commands/cmdutils"

View File

@ -10,7 +10,7 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/api"
"github.com/profclems/glab/pkg/tableprinter"
"github.com/profclems/glab/pkg/utils"

View File

@ -5,8 +5,8 @@ import (
"strconv"
"strings"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/MakeNowJust/heredoc"

View File

@ -8,9 +8,9 @@ import (
"net/http"
"os"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/pkg/api"
"github.com/MakeNowJust/heredoc"
"github.com/spf13/cobra"

View File

@ -3,9 +3,9 @@ package list
import (
"fmt"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/ci/ciutils"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/MakeNowJust/heredoc"

View File

@ -5,9 +5,9 @@ import (
"regexp"
"strings"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/pkg/api"
"github.com/MakeNowJust/heredoc"
"github.com/spf13/cobra"

View File

@ -4,10 +4,10 @@ import (
"fmt"
"time"
"github.com/profclems/glab/api"
ciTraceCmd "github.com/profclems/glab/commands/ci/trace"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/AlecAivazis/survey/v2"

View File

@ -10,10 +10,10 @@ import (
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/prompt"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/ci/ciutils"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/AlecAivazis/survey/v2"

View File

@ -11,10 +11,10 @@ import (
"strings"
"time"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/ci/ciutils"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/MakeNowJust/heredoc"

View File

@ -11,8 +11,8 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/api"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/xanzy/go-gitlab"

View File

@ -8,9 +8,9 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/acarl005/stripansi"
"github.com/profclems/glab/api"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/prompt"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"

View File

@ -5,11 +5,11 @@ import (
"fmt"
"strings"
"github.com/profclems/glab/api"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/internal/glinstance"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/iostreams"
"github.com/xanzy/go-gitlab"
)

View File

@ -5,8 +5,8 @@ import (
"github.com/profclems/glab/pkg/prompt"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
"github.com/xanzy/go-gitlab"
)

View File

@ -9,8 +9,8 @@ import (
"github.com/profclems/glab/commands/cmdutils"
"github.com/acarl005/stripansi"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdtest"
"github.com/profclems/glab/pkg/api"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xanzy/go-gitlab"

View File

@ -7,9 +7,9 @@ import (
"github.com/AlecAivazis/survey/v2"
"github.com/gdamore/tcell/v2"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/rivo/tview"
"github.com/spf13/cobra"
"github.com/xanzy/go-gitlab"

View File

@ -4,7 +4,7 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/issue/issueutils"

View File

@ -8,7 +8,7 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/acarl005/stripansi"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/api"
"github.com/stretchr/testify/require"
"github.com/xanzy/go-gitlab"

View File

@ -14,9 +14,9 @@ import (
"github.com/profclems/glab/pkg/utils"
"github.com/AlecAivazis/survey/v2"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/issue/issueutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/prompt"
"github.com/spf13/cobra"
"github.com/xanzy/go-gitlab"

View File

@ -13,8 +13,8 @@ import (
"github.com/profclems/glab/pkg/utils"
"github.com/acarl005/stripansi"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdtest"
"github.com/profclems/glab/pkg/api"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"
)

View File

@ -4,9 +4,9 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/issue/issueutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
)

View File

@ -7,8 +7,8 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdtest"
"github.com/profclems/glab/pkg/api"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"
)

View File

@ -10,9 +10,9 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/api"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"golang.org/x/sync/errgroup"
"github.com/profclems/glab/pkg/tableprinter"

View File

@ -9,9 +9,9 @@ import (
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/issue/issueutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/spf13/cobra"

View File

@ -15,10 +15,10 @@ import (
"github.com/alecthomas/assert"
"github.com/google/shlex"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/httpmock"
"github.com/profclems/glab/test"
"github.com/xanzy/go-gitlab"

View File

@ -6,8 +6,8 @@ import (
"github.com/profclems/glab/commands/issue/issueutils"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/spf13/cobra"

View File

@ -10,11 +10,11 @@ import (
"github.com/alecthomas/assert"
"github.com/google/shlex"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/httpmock"
"github.com/profclems/glab/pkg/prompt"
"github.com/profclems/glab/test"

View File

@ -4,9 +4,9 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/issue/issueutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
"github.com/xanzy/go-gitlab"

View File

@ -4,9 +4,9 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/issue/issueutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
)

View File

@ -7,8 +7,8 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdtest"
"github.com/profclems/glab/pkg/api"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xanzy/go-gitlab"

View File

@ -4,9 +4,9 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/issue/issueutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
)

View File

@ -7,8 +7,8 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdtest"
"github.com/profclems/glab/pkg/api"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xanzy/go-gitlab"

View File

@ -5,9 +5,9 @@ import (
"fmt"
"strings"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/issue/issueutils"
"github.com/profclems/glab/pkg/api"
"github.com/MakeNowJust/heredoc"
"github.com/spf13/cobra"

View File

@ -11,8 +11,8 @@ import (
"github.com/google/shlex"
"github.com/acarl005/stripansi"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdtest"
"github.com/profclems/glab/pkg/api"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/xanzy/go-gitlab"

View File

@ -8,8 +8,8 @@ import (
"github.com/profclems/glab/commands/issue/issueutils"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/MakeNowJust/heredoc"

View File

@ -11,11 +11,11 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/acarl005/stripansi"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdtest"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/internal/run"
"github.com/profclems/glab/pkg/api"
mainTest "github.com/profclems/glab/test"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

View File

@ -4,7 +4,7 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/spf13/cobra"

View File

@ -4,7 +4,7 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/pkg/utils"

View File

@ -4,9 +4,9 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
"github.com/xanzy/go-gitlab"
)

View File

@ -3,8 +3,8 @@ package approvers
import (
"fmt"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/tableprinter"
"github.com/profclems/glab/commands/cmdutils"

View File

@ -6,10 +6,10 @@ import (
"strings"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/pkg/api"
"github.com/tcnksm/go-gitconfig"
"github.com/spf13/cobra"

View File

@ -4,9 +4,9 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
"github.com/xanzy/go-gitlab"

View File

@ -14,10 +14,10 @@ import (
"github.com/profclems/glab/internal/glrepo"
"github.com/AlecAivazis/survey/v2"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/prompt"
"github.com/profclems/glab/pkg/utils"
"github.com/spf13/cobra"

View File

@ -16,11 +16,11 @@ import (
"github.com/profclems/glab/pkg/prompt"
"github.com/google/shlex"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/httpmock"
"github.com/profclems/glab/test"
"github.com/stretchr/testify/assert"

View File

@ -4,9 +4,9 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
)

View File

@ -12,8 +12,8 @@ import (
"github.com/profclems/glab/internal/config"
"github.com/acarl005/stripansi"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdtest"
"github.com/profclems/glab/pkg/api"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"
)

View File

@ -10,7 +10,7 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/api"
"github.com/xanzy/go-gitlab"
"github.com/google/shlex"

View File

@ -6,9 +6,9 @@ import (
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/MakeNowJust/heredoc"

View File

@ -4,10 +4,10 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/issue/issueutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/spf13/cobra"

View File

@ -9,9 +9,9 @@ import (
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/spf13/cobra"

View File

@ -15,10 +15,10 @@ import (
"github.com/alecthomas/assert"
"github.com/google/shlex"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/httpmock"
"github.com/profclems/glab/test"
"github.com/xanzy/go-gitlab"

View File

@ -4,8 +4,8 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/spf13/cobra"

View File

@ -8,9 +8,9 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/prompt"
"github.com/profclems/glab/pkg/tableprinter"
"github.com/xanzy/go-gitlab"

View File

@ -7,9 +7,9 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/prompt"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"

View File

@ -5,8 +5,8 @@ import (
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/spf13/cobra"

View File

@ -10,12 +10,12 @@ import (
"github.com/alecthomas/assert"
"github.com/google/shlex"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdtest"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/httpmock"
"github.com/profclems/glab/pkg/prompt"
"github.com/profclems/glab/test"

View File

@ -4,9 +4,9 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
"github.com/xanzy/go-gitlab"

View File

@ -3,9 +3,9 @@ package reopen
import (
"fmt"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
"github.com/xanzy/go-gitlab"

View File

@ -4,9 +4,9 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
)

View File

@ -4,9 +4,9 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
)

View File

@ -11,10 +11,10 @@ import (
"github.com/stretchr/testify/require"
"github.com/acarl005/stripansi"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdtest"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/pkg/api"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"
)

View File

@ -5,8 +5,8 @@ import (
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
)

View File

@ -4,9 +4,9 @@ import (
"fmt"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
)

View File

@ -11,9 +11,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/acarl005/stripansi"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdtest"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/pkg/api"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"
)

View File

@ -5,9 +5,9 @@ import (
"fmt"
"strings"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/MakeNowJust/heredoc"
"github.com/spf13/cobra"

View File

@ -6,9 +6,9 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/mr/mrutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/MakeNowJust/heredoc"

View File

@ -11,9 +11,9 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/acarl005/stripansi"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/pkg/api"
"github.com/stretchr/testify/require"
"github.com/xanzy/go-gitlab"

View File

@ -8,12 +8,12 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/internal/glinstance"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/xanzy/go-gitlab"

View File

@ -9,8 +9,8 @@ import (
"github.com/profclems/glab/pkg/prompt"
"github.com/profclems/glab/api"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/commands/cmdutils"

View File

@ -7,9 +7,9 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/prompt"
"github.com/spf13/cobra"
"github.com/xanzy/go-gitlab"

View File

@ -8,12 +8,12 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/config"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/internal/run"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/prompt"
"github.com/spf13/cobra"
"github.com/xanzy/go-gitlab"

View File

@ -3,7 +3,7 @@ package list
import (
"fmt"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/commands/release/releaseutils"

View File

@ -10,9 +10,9 @@ import (
"github.com/google/shlex"
"github.com/profclems/glab/api"
cmdTestUtils "github.com/profclems/glab/commands/cmdtest"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/pkg/api"
"github.com/acarl005/stripansi"
"github.com/stretchr/testify/assert"

View File

@ -4,8 +4,8 @@ import (
"fmt"
"io"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/utils"
"github.com/spf13/cobra"
"github.com/xanzy/go-gitlab"

View File

@ -10,9 +10,9 @@ import (
"github.com/profclems/glab/pkg/iostreams"
"github.com/MakeNowJust/heredoc"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/spf13/cobra"
"github.com/xanzy/go-gitlab"
)

View File

@ -9,9 +9,9 @@ import (
"github.com/alecthomas/assert"
"github.com/google/shlex"
"github.com/profclems/glab/api"
"github.com/profclems/glab/commands/cmdutils"
"github.com/profclems/glab/internal/glrepo"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/httpmock"
"github.com/xanzy/go-gitlab"
)

View File

@ -5,8 +5,8 @@ import (
"sort"
"strings"
"github.com/profclems/glab/api"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/prompt"
"github.com/xanzy/go-gitlab"

View File

@ -5,8 +5,8 @@ import (
"fmt"
"testing"
"github.com/profclems/glab/api"
"github.com/profclems/glab/internal/git"
"github.com/profclems/glab/pkg/api"
"github.com/profclems/glab/pkg/prompt"
"github.com/stretchr/testify/assert"
"github.com/xanzy/go-gitlab"