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

fix: update Go module path to github.com/launchdarkly/ldcli #303

Merged
merged 1 commit into from
May 21, 2024
Merged
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
2 changes: 1 addition & 1 deletion cmd/analytics/analytics.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package analytics

import (
"ldcli/cmd/cliflags"
"github.com/launchdarkly/ldcli/cmd/cliflags"

"github.com/spf13/cobra"
"github.com/spf13/pflag"
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmdtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/stretchr/testify/require"

"ldcli/internal/analytics"
"github.com/launchdarkly/ldcli/internal/analytics"
)

var StubbedSuccessResponse = `{
Expand Down
12 changes: 6 additions & 6 deletions cmd/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"github.com/spf13/viper"
"gopkg.in/yaml.v3"

cmdAnalytics "ldcli/cmd/analytics"
"ldcli/cmd/cliflags"
"ldcli/internal/analytics"
"ldcli/internal/config"
"ldcli/internal/errors"
"ldcli/internal/output"
cmdAnalytics "github.com/launchdarkly/ldcli/cmd/analytics"
"github.com/launchdarkly/ldcli/cmd/cliflags"
"github.com/launchdarkly/ldcli/internal/analytics"
"github.com/launchdarkly/ldcli/internal/config"
"github.com/launchdarkly/ldcli/internal/errors"
"github.com/launchdarkly/ldcli/internal/output"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions cmd/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"ldcli/cmd"
"ldcli/internal/analytics"
"github.com/launchdarkly/ldcli/cmd"
"github.com/launchdarkly/ldcli/internal/analytics"
)

func TestNoFlag(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions cmd/flags/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

"ldcli/cmd/cliflags"
resourcescmd "ldcli/cmd/resources"
"ldcli/cmd/validators"
"ldcli/internal/errors"
"ldcli/internal/output"
"ldcli/internal/resources"
"github.com/launchdarkly/ldcli/cmd/cliflags"
resourcescmd "github.com/launchdarkly/ldcli/cmd/resources"
"github.com/launchdarkly/ldcli/cmd/validators"
"github.com/launchdarkly/ldcli/internal/errors"
"github.com/launchdarkly/ldcli/internal/output"
"github.com/launchdarkly/ldcli/internal/resources"
)

func NewArchiveCmd(client resources.Client) *cobra.Command {
Expand Down
6 changes: 3 additions & 3 deletions cmd/flags/archive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"ldcli/cmd"
"ldcli/internal/analytics"
"ldcli/internal/resources"
"github.com/launchdarkly/ldcli/cmd"
"github.com/launchdarkly/ldcli/internal/analytics"
"github.com/launchdarkly/ldcli/internal/resources"
)

func TestArchive(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions cmd/flags/toggle.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

"ldcli/cmd/cliflags"
resourcescmd "ldcli/cmd/resources"
"ldcli/cmd/validators"
"ldcli/internal/errors"
"ldcli/internal/output"
"ldcli/internal/resources"
"github.com/launchdarkly/ldcli/cmd/cliflags"
resourcescmd "github.com/launchdarkly/ldcli/cmd/resources"
"github.com/launchdarkly/ldcli/cmd/validators"
"github.com/launchdarkly/ldcli/internal/errors"
"github.com/launchdarkly/ldcli/internal/output"
"github.com/launchdarkly/ldcli/internal/resources"
)

func NewToggleOnCmd(client resources.Client) *cobra.Command {
Expand Down
6 changes: 3 additions & 3 deletions cmd/flags/toggle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"ldcli/cmd"
"ldcli/internal/analytics"
"ldcli/internal/resources"
"github.com/launchdarkly/ldcli/cmd"
"github.com/launchdarkly/ldcli/internal/analytics"
"github.com/launchdarkly/ldcli/internal/resources"
)

func TestToggleOn(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions cmd/members/invite.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

"ldcli/cmd/cliflags"
resourcescmd "ldcli/cmd/resources"
"ldcli/cmd/validators"
"ldcli/internal/errors"
"ldcli/internal/members"
"ldcli/internal/output"
"ldcli/internal/resources"
"github.com/launchdarkly/ldcli/cmd/cliflags"
resourcescmd "github.com/launchdarkly/ldcli/cmd/resources"
"github.com/launchdarkly/ldcli/cmd/validators"
"github.com/launchdarkly/ldcli/internal/errors"
"github.com/launchdarkly/ldcli/internal/members"
"github.com/launchdarkly/ldcli/internal/output"
"github.com/launchdarkly/ldcli/internal/resources"
)

func NewMembersInviteCmd(client resources.Client) *cobra.Command {
Expand Down
6 changes: 3 additions & 3 deletions cmd/members/invite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"ldcli/cmd"
"ldcli/internal/analytics"
"ldcli/internal/resources"
"github.com/launchdarkly/ldcli/cmd"
"github.com/launchdarkly/ldcli/internal/analytics"
"github.com/launchdarkly/ldcli/internal/resources"
)

func TestInvite(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions cmd/quickstart.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

cmdAnalytics "ldcli/cmd/analytics"
"ldcli/cmd/cliflags"
"ldcli/cmd/validators"
"ldcli/internal/analytics"
"ldcli/internal/environments"
"ldcli/internal/flags"
"ldcli/internal/quickstart"
cmdAnalytics "github.com/launchdarkly/ldcli/cmd/analytics"
"github.com/launchdarkly/ldcli/cmd/cliflags"
"github.com/launchdarkly/ldcli/cmd/validators"
"github.com/launchdarkly/ldcli/internal/analytics"
"github.com/launchdarkly/ldcli/internal/environments"
"github.com/launchdarkly/ldcli/internal/flags"
"github.com/launchdarkly/ldcli/internal/quickstart"
)

func NewQuickStartCmd(
Expand Down
2 changes: 1 addition & 1 deletion cmd/resources/gen_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"log"
"text/template"

"ldcli/cmd/resources"
"github.com/launchdarkly/ldcli/cmd/resources"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/resources/gen_resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"ldcli/cmd/resources"
"github.com/launchdarkly/ldcli/cmd/resources"
)

func TestGetTemplateData(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions cmd/resources/resource_cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package resources
import (
"github.com/spf13/cobra"

"ldcli/internal/analytics"
"ldcli/internal/resources"
"github.com/launchdarkly/ldcli/internal/analytics"
"github.com/launchdarkly/ldcli/internal/resources"
)

func AddAllResourceCmds(
Expand Down
4 changes: 2 additions & 2 deletions cmd/resources/resource_cmds.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package resources
import (
"github.com/spf13/cobra"

"ldcli/internal/analytics"
"ldcli/internal/resources"
"github.com/launchdarkly/ldcli/internal/analytics"
"github.com/launchdarkly/ldcli/internal/resources"
)

func AddAllResourceCmds(
Expand Down
4 changes: 2 additions & 2 deletions cmd/resources/resource_cmds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"ldcli/cmd"
"ldcli/internal/analytics"
"github.com/launchdarkly/ldcli/cmd"
"github.com/launchdarkly/ldcli/internal/analytics"
)

func TestCreateTeam(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions cmd/resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

cmdAnalytics "ldcli/cmd/analytics"
"ldcli/cmd/cliflags"
"ldcli/cmd/validators"
"ldcli/internal/analytics"
"ldcli/internal/errors"
"ldcli/internal/output"
"ldcli/internal/resources"
cmdAnalytics "github.com/launchdarkly/ldcli/cmd/analytics"
"github.com/launchdarkly/ldcli/cmd/cliflags"
"github.com/launchdarkly/ldcli/cmd/validators"
"github.com/launchdarkly/ldcli/internal/analytics"
"github.com/launchdarkly/ldcli/internal/errors"
"github.com/launchdarkly/ldcli/internal/output"
"github.com/launchdarkly/ldcli/internal/resources"
)

func getResourcesHelpTemplate() string {
Expand Down
2 changes: 1 addition & 1 deletion cmd/resources/resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"ldcli/cmd/resources"
"github.com/launchdarkly/ldcli/cmd/resources"
)

func TestNewResourceData(t *testing.T) {
Expand Down
28 changes: 14 additions & 14 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

cmdAnalytics "ldcli/cmd/analytics"
"ldcli/cmd/cliflags"
configcmd "ldcli/cmd/config"
flagscmd "ldcli/cmd/flags"
memberscmd "ldcli/cmd/members"
resourcecmd "ldcli/cmd/resources"
"ldcli/internal/analytics"
"ldcli/internal/config"
"ldcli/internal/environments"
errs "ldcli/internal/errors"
"ldcli/internal/flags"
"ldcli/internal/members"
"ldcli/internal/projects"
"ldcli/internal/resources"
cmdAnalytics "github.com/launchdarkly/ldcli/cmd/analytics"
"github.com/launchdarkly/ldcli/cmd/cliflags"
configcmd "github.com/launchdarkly/ldcli/cmd/config"
flagscmd "github.com/launchdarkly/ldcli/cmd/flags"
memberscmd "github.com/launchdarkly/ldcli/cmd/members"
resourcecmd "github.com/launchdarkly/ldcli/cmd/resources"
"github.com/launchdarkly/ldcli/internal/analytics"
"github.com/launchdarkly/ldcli/internal/config"
"github.com/launchdarkly/ldcli/internal/environments"
errs "github.com/launchdarkly/ldcli/internal/errors"
"github.com/launchdarkly/ldcli/internal/flags"
"github.com/launchdarkly/ldcli/internal/members"
"github.com/launchdarkly/ldcli/internal/projects"
"github.com/launchdarkly/ldcli/internal/resources"
)

type APIClients struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/root_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd_test

import (
"ldcli/cmd"
"ldcli/internal/analytics"
"github.com/launchdarkly/ldcli/cmd"
"github.com/launchdarkly/ldcli/internal/analytics"
"testing"

"github.com/stretchr/testify/assert"
Expand Down
6 changes: 3 additions & 3 deletions cmd/validators/validators.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/spf13/pflag"
"github.com/spf13/viper"

"ldcli/cmd/cliflags"
errs "ldcli/internal/errors"
"ldcli/internal/output"
"github.com/launchdarkly/ldcli/cmd/cliflags"
errs "github.com/launchdarkly/ldcli/internal/errors"
"github.com/launchdarkly/ldcli/internal/output"
)

// Validate is a validator for commands to print an error when the user input is invalid.
Expand Down
2 changes: 1 addition & 1 deletion cmd/validators/validators_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/assert"

"ldcli/cmd/validators"
"github.com/launchdarkly/ldcli/cmd/validators"
)

func TestCmdError(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module ldcli
module github.com/launchdarkly/ldcli

go 1.20

Expand All @@ -18,6 +18,7 @@ require (
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.18.2
github.com/stretchr/testify v1.9.0
golang.org/x/term v0.18.0
gopkg.in/yaml.v3 v3.0.1
)

Expand Down Expand Up @@ -72,7 +73,6 @@ require (
golang.org/x/oauth2 v0.15.0 // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/term v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.33.0 // indirect
Expand Down
6 changes: 3 additions & 3 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"github.com/mitchellh/go-homedir"

"ldcli/cmd/cliflags"
"ldcli/internal/errors"
"ldcli/internal/output"
"github.com/launchdarkly/ldcli/cmd/cliflags"
"github.com/launchdarkly/ldcli/internal/errors"
"github.com/launchdarkly/ldcli/internal/output"
)

const Filename = ".ldcli-config.yml"
Expand Down
2 changes: 1 addition & 1 deletion internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package config_test

import (
"fmt"
"ldcli/internal/config"
"github.com/launchdarkly/ldcli/internal/config"
"testing"

"github.com/stretchr/testify/assert"
Expand Down
4 changes: 2 additions & 2 deletions internal/environments/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"encoding/json"

"ldcli/internal/client"
"ldcli/internal/errors"
"github.com/launchdarkly/ldcli/internal/client"
"github.com/launchdarkly/ldcli/internal/errors"
)

type Client interface {
Expand Down
2 changes: 1 addition & 1 deletion internal/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/pkg/errors"

"ldcli/cmd/cliflags"
"github.com/launchdarkly/ldcli/cmd/cliflags"
)

var ErrInvalidBaseURI = NewError(fmt.Sprintf("%s is invalid", cliflags.BaseURIFlag))
Expand Down
2 changes: 1 addition & 1 deletion internal/errors/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

errs "ldcli/internal/errors"
errs "github.com/launchdarkly/ldcli/internal/errors"
)

func TestAPIError(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/flags/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

ldapi "github.com/launchdarkly/api-client-go/v14"

"ldcli/internal/client"
"ldcli/internal/errors"
"github.com/launchdarkly/ldcli/internal/client"
"github.com/launchdarkly/ldcli/internal/errors"
)

type UpdateInput struct {
Expand Down
Loading
Loading