Skip to content
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: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Rename module path from `wpm` to `go.wpm.so/cli`.
c5868413481c77e63181b97e4c2fbc1dd1f28b74
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
!README.md
!docker-bake.hcl
!Dockerfile
!.git-blame-ignore-revs

# directories
!cli
Expand Down
4 changes: 2 additions & 2 deletions cli/cobra.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"sort"
"strings"

"wpm/cli/command"
cliflags "wpm/cli/flags"
"go.wpm.so/cli/cli/command"
cliflags "go.wpm.so/cli/cli/flags"

"github.com/fvbommel/sortorder"
"github.com/moby/term"
Expand Down
4 changes: 2 additions & 2 deletions cli/command/auth/cmd.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package auth

import (
"wpm/cli"
"wpm/cli/command"
"go.wpm.so/cli/cli"
"go.wpm.so/cli/cli/command"

"github.com/spf13/cobra"
)
Expand Down
7 changes: 4 additions & 3 deletions cli/command/auth/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package auth
import (
"context"
"fmt"
"wpm/cli"
"wpm/cli/command"
"wpm/pkg/output"

"go.wpm.so/cli/cli"
"go.wpm.so/cli/cli/command"
"go.wpm.so/cli/pkg/output"

"github.com/morikuni/aec"
"github.com/pkg/errors"
Expand Down
5 changes: 3 additions & 2 deletions cli/command/auth/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package auth

import (
"fmt"
"wpm/cli"
"wpm/cli/command"

"go.wpm.so/cli/cli"
"go.wpm.so/cli/cli/command"

"github.com/pkg/errors"
"github.com/spf13/cobra"
Expand Down
18 changes: 9 additions & 9 deletions cli/command/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import (
"os"
"runtime"

"wpm/cli/debug"
cliflags "wpm/cli/flags"
"wpm/cli/version"
"wpm/pkg/config"
"wpm/pkg/config/configfile"
"wpm/pkg/output"
"wpm/pkg/pm/registry"
"wpm/pkg/progress"
"wpm/pkg/streams"
"go.wpm.so/cli/cli/debug"
cliflags "go.wpm.so/cli/cli/flags"
"go.wpm.so/cli/cli/version"
"go.wpm.so/cli/pkg/config"
"go.wpm.so/cli/pkg/config/configfile"
"go.wpm.so/cli/pkg/output"
"go.wpm.so/cli/pkg/pm/registry"
"go.wpm.so/cli/pkg/progress"
"go.wpm.so/cli/pkg/streams"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cli/command/cli_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package command
import (
"io"

"wpm/pkg/streams"
"go.wpm.so/cli/pkg/streams"

"github.com/moby/term"
)
Expand Down
20 changes: 10 additions & 10 deletions cli/command/commands/commands.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package commands

import (
"wpm/cli/command"
"wpm/cli/command/auth"
pmInit "wpm/cli/command/init"
"wpm/cli/command/install"
"wpm/cli/command/ls"
"wpm/cli/command/outdated"
"wpm/cli/command/publish"
"wpm/cli/command/uninstall"
"wpm/cli/command/whoami"
"wpm/cli/command/why"
"go.wpm.so/cli/cli/command"
"go.wpm.so/cli/cli/command/auth"
pmInit "go.wpm.so/cli/cli/command/init"
"go.wpm.so/cli/cli/command/install"
"go.wpm.so/cli/cli/command/ls"
"go.wpm.so/cli/cli/command/outdated"
"go.wpm.so/cli/cli/command/publish"
"go.wpm.so/cli/cli/command/uninstall"
"go.wpm.so/cli/cli/command/whoami"
"go.wpm.so/cli/cli/command/why"

"github.com/spf13/cobra"
)
Expand Down
14 changes: 7 additions & 7 deletions cli/command/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
"strings"
"unicode"

"wpm/cli/command"
"wpm/pkg/output"
"wpm/pkg/pm/wpmjson"
"wpm/pkg/pm/wpmjson/types"
"wpm/pkg/pm/wpmjson/validator"
"wpm/pkg/version"
"wpm/pkg/wp/parser"
"go.wpm.so/cli/cli/command"
"go.wpm.so/cli/pkg/output"
"go.wpm.so/cli/pkg/pm/wpmjson"
"go.wpm.so/cli/pkg/pm/wpmjson/types"
"go.wpm.so/cli/pkg/pm/wpmjson/validator"
"go.wpm.so/cli/pkg/version"
"go.wpm.so/cli/pkg/wp/parser"

"github.com/Masterminds/semver/v3"
"github.com/morikuni/aec"
Expand Down
14 changes: 7 additions & 7 deletions cli/command/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"strings"
"sync"

"wpm/cli/command"
"wpm/cli/version"
"wpm/pkg/output"
"wpm/pkg/pm/workspace"
"wpm/pkg/pm/wpmjson"
"wpm/pkg/pm/wpmjson/types"
"wpm/pkg/pm/wpmjson/validator"
"go.wpm.so/cli/cli/command"
"go.wpm.so/cli/cli/version"
"go.wpm.so/cli/pkg/output"
"go.wpm.so/cli/pkg/pm/workspace"
"go.wpm.so/cli/pkg/pm/wpmjson"
"go.wpm.so/cli/pkg/pm/wpmjson/types"
"go.wpm.so/cli/pkg/pm/wpmjson/validator"

"github.com/morikuni/aec"
"github.com/pkg/errors"
Expand Down
13 changes: 7 additions & 6 deletions cli/command/install/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import (
"path/filepath"
"slices"
"strconv"
"wpm/cli/command"
"wpm/pkg/output"
"wpm/pkg/pm/installer"
"wpm/pkg/pm/resolution"
"wpm/pkg/pm/wpmjson"
"wpm/pkg/pm/wpmlock"

"go.wpm.so/cli/cli/command"
"go.wpm.so/cli/pkg/output"
"go.wpm.so/cli/pkg/pm/installer"
"go.wpm.so/cli/pkg/pm/resolution"
"go.wpm.so/cli/pkg/pm/wpmjson"
"go.wpm.so/cli/pkg/pm/wpmlock"

"github.com/morikuni/aec"
"github.com/pkg/errors"
Expand Down
8 changes: 4 additions & 4 deletions cli/command/ls/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"path/filepath"
"sort"

"wpm/cli"
"wpm/cli/command"
"wpm/pkg/pm/wpmjson"
"wpm/pkg/pm/wpmlock"
"go.wpm.so/cli/cli"
"go.wpm.so/cli/cli/command"
"go.wpm.so/cli/pkg/pm/wpmjson"
"go.wpm.so/cli/pkg/pm/wpmlock"

"github.com/morikuni/aec"
"github.com/pkg/errors"
Expand Down
12 changes: 6 additions & 6 deletions cli/command/outdated/outdated.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"sort"
"sync"

"wpm/cli"
"wpm/cli/command"
"wpm/cli/version"
"wpm/pkg/output"
"wpm/pkg/pm/wpmjson"
"wpm/pkg/pm/wpmlock"
"go.wpm.so/cli/cli"
"go.wpm.so/cli/cli/command"
"go.wpm.so/cli/cli/version"
"go.wpm.so/cli/pkg/output"
"go.wpm.so/cli/pkg/pm/wpmjson"
"go.wpm.so/cli/pkg/pm/wpmlock"

"github.com/Masterminds/semver/v3"
"github.com/morikuni/aec"
Expand Down
18 changes: 9 additions & 9 deletions cli/command/publish/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import (
"strings"
"text/tabwriter"

"wpm/cli"
"wpm/cli/command"
"wpm/cli/version"
"wpm/pkg/archive"
"wpm/pkg/output"
"wpm/pkg/pm/wpmignore"
"wpm/pkg/pm/wpmjson"
"wpm/pkg/pm/wpmjson/manifest"
"wpm/pkg/pm/wpmjson/types"
"go.wpm.so/cli/cli"
"go.wpm.so/cli/cli/command"
"go.wpm.so/cli/cli/version"
"go.wpm.so/cli/pkg/archive"
"go.wpm.so/cli/pkg/output"
"go.wpm.so/cli/pkg/pm/wpmignore"
"go.wpm.so/cli/pkg/pm/wpmjson"
"go.wpm.so/cli/pkg/pm/wpmjson/manifest"
"go.wpm.so/cli/pkg/pm/wpmjson/types"

"github.com/docker/go-units"
"github.com/morikuni/aec"
Expand Down
14 changes: 7 additions & 7 deletions cli/command/uninstall/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import (
"os"
"path/filepath"

"wpm/cli"
"wpm/cli/command"
"wpm/cli/command/install"
"wpm/cli/version"
"wpm/pkg/output"
"wpm/pkg/pm/workspace"
"wpm/pkg/pm/wpmjson"
"go.wpm.so/cli/cli"
"go.wpm.so/cli/cli/command"
"go.wpm.so/cli/cli/command/install"
"go.wpm.so/cli/cli/version"
"go.wpm.so/cli/pkg/output"
"go.wpm.so/cli/pkg/pm/workspace"
"go.wpm.so/cli/pkg/pm/wpmjson"

"github.com/morikuni/aec"
"github.com/pkg/errors"
Expand Down
3 changes: 2 additions & 1 deletion cli/command/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import (
"os"
"runtime"
"strings"
"wpm/pkg/streams"

"go.wpm.so/cli/pkg/streams"

"github.com/moby/term"
)
Expand Down
5 changes: 3 additions & 2 deletions cli/command/whoami/whoami.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package whoami

import (
"context"
"wpm/cli"
"wpm/cli/command"

"go.wpm.so/cli/cli"
"go.wpm.so/cli/cli/command"

"github.com/pkg/errors"
"github.com/spf13/cobra"
Expand Down
10 changes: 5 additions & 5 deletions cli/command/why/why.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"sort"
"strings"

"wpm/cli"
"wpm/cli/command"
"wpm/pkg/output"
"wpm/pkg/pm/wpmjson"
"wpm/pkg/pm/wpmlock"
"go.wpm.so/cli/cli"
"go.wpm.so/cli/cli/command"
"go.wpm.so/cli/pkg/output"
"go.wpm.so/cli/pkg/pm/wpmjson"
"go.wpm.so/cli/pkg/pm/wpmlock"

"github.com/morikuni/aec"
"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion cli/flags/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"wpm/pkg/config"
"go.wpm.so/cli/pkg/config"

"github.com/sirupsen/logrus"
"github.com/spf13/pflag"
Expand Down
12 changes: 6 additions & 6 deletions cmd/wpm/wpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"os/signal"
"syscall"

"wpm/cli"
"wpm/cli/command"
"wpm/cli/command/commands"
cliflags "wpm/cli/flags"
"wpm/cli/version"
platformsignals "wpm/cmd/wpm/internal/signals"
"go.wpm.so/cli/cli"
"go.wpm.so/cli/cli/command"
"go.wpm.so/cli/cli/command/commands"
cliflags "go.wpm.so/cli/cli/flags"
"go.wpm.so/cli/cli/version"
platformsignals "go.wpm.so/cli/cmd/wpm/internal/signals"

"github.com/containerd/errdefs"
"github.com/morikuni/aec"
Expand Down
2 changes: 1 addition & 1 deletion cmd/wpm/wpm_windows_386.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

package main

import _ "wpm/cmd/wpm/winresources"
import _ "go.wpm.so/cli/cmd/wpm/winresources"
2 changes: 1 addition & 1 deletion cmd/wpm/wpm_windows_amd64.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

package main

import _ "wpm/cmd/wpm/winresources"
import _ "go.wpm.so/cli/cmd/wpm/winresources"
2 changes: 1 addition & 1 deletion cmd/wpm/wpm_windows_arm.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

package main

import _ "wpm/cmd/wpm/winresources"
import _ "go.wpm.so/cli/cmd/wpm/winresources"
2 changes: 1 addition & 1 deletion cmd/wpm/wpm_windows_arm64.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

package main

import _ "wpm/cmd/wpm/winresources"
import _ "go.wpm.so/cli/cmd/wpm/winresources"
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module wpm
module go.wpm.so/cli

go 1.25.0

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"sync"
"time"

"wpm/pkg/asciisanitizer"
"go.wpm.so/cli/pkg/asciisanitizer"

"github.com/henvic/httpretty"
"github.com/klauspost/compress/zstd"
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/log_formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"io"

"wpm/pkg/jsonpretty"
"go.wpm.so/cli/pkg/jsonpretty"
)

// jsonFormatter is a httpretty.Formatter that prettifies JSON payloads and GraphQL queries.
Expand Down
3 changes: 2 additions & 1 deletion pkg/api/rest_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
"io"
"net/http"
"strings"
"wpm/pkg/unsafeconv"

"go.wpm.so/cli/pkg/unsafeconv"
)

type RESTClient struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"sync"

"wpm/pkg/config/configfile"
"go.wpm.so/cli/pkg/config/configfile"

"github.com/pkg/errors"
)
Expand Down
Loading