Skip to content

Commit 6bc8a50

Browse files
committed
refactor: rename package 'subcmd' to 'gateway'
1 parent 856d6a6 commit 6bc8a50

30 files changed

+46
-46
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
NAME := volt
33
SRC := $(shell find . -type d -name 'vendor' -prune -o -type f -name '*.go' -print)
4-
VERSION := $(shell sed -n -E 's/var voltVersion = "([^"]+)"/\1/p' subcmd/version.go)
4+
VERSION := $(shell sed -n -E 's/var voltVersion = "([^"]+)"/\1/p' gateway/version.go)
55
RELEASE_LDFLAGS := -s -w -extldflags '-static'
66
RELEASE_OS := linux windows darwin
77
RELEASE_ARCH := amd64 386

subcmd/build.go renamed to gateway/build.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package subcmd
1+
package gateway
22

33
import (
44
"flag"
55
"fmt"
66
"os"
77

8+
"github.com/vim-volt/volt/gateway/builder"
89
"github.com/vim-volt/volt/logger"
9-
"github.com/vim-volt/volt/subcmd/builder"
1010
"github.com/vim-volt/volt/transaction"
1111
)
1212

subcmd/build_test.go renamed to gateway/build_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package subcmd
1+
package gateway
22

33
import (
44
"bytes"
@@ -13,10 +13,10 @@ import (
1313
"github.com/haya14busa/go-vimlparser"
1414
"github.com/vim-volt/volt/config"
1515
"github.com/vim-volt/volt/fileutil"
16+
"github.com/vim-volt/volt/gateway/builder"
1617
"github.com/vim-volt/volt/internal/testutil"
1718
"github.com/vim-volt/volt/lockjson"
1819
"github.com/vim-volt/volt/pathutil"
19-
"github.com/vim-volt/volt/subcmd/builder"
2020
)
2121

2222
// Checks:

subcmd/builder/base.go renamed to gateway/builder/base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import (
1212

1313
"github.com/hashicorp/go-multierror"
1414
"github.com/vim-volt/volt/fileutil"
15+
"github.com/vim-volt/volt/gateway/buildinfo"
1516
"github.com/vim-volt/volt/lockjson"
1617
"github.com/vim-volt/volt/logger"
1718
"github.com/vim-volt/volt/pathutil"
18-
"github.com/vim-volt/volt/subcmd/buildinfo"
1919
)
2020

2121
// BaseBuilder is a base struct which all builders must implement

subcmd/builder/builder.go renamed to gateway/builder/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"os"
66

77
"github.com/vim-volt/volt/config"
8+
"github.com/vim-volt/volt/gateway/buildinfo"
89
"github.com/vim-volt/volt/logger"
910
"github.com/vim-volt/volt/pathutil"
10-
"github.com/vim-volt/volt/subcmd/buildinfo"
1111
)
1212

1313
// Builder creates/updates ~/.vim/pack/volt directory

subcmd/builder/copy.go renamed to gateway/builder/copy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010

1111
"github.com/hashicorp/go-multierror"
1212
"github.com/vim-volt/volt/fileutil"
13+
"github.com/vim-volt/volt/gateway/buildinfo"
1314
"github.com/vim-volt/volt/gitutil"
1415
"github.com/vim-volt/volt/lockjson"
1516
"github.com/vim-volt/volt/logger"
1617
"github.com/vim-volt/volt/pathutil"
1718
"github.com/vim-volt/volt/plugconf"
18-
"github.com/vim-volt/volt/subcmd/buildinfo"
1919
"gopkg.in/src-d/go-git.v4"
2020
"gopkg.in/src-d/go-git.v4/plumbing"
2121
"gopkg.in/src-d/go-git.v4/plumbing/object"

subcmd/builder/symlink.go renamed to gateway/builder/symlink.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import (
1111

1212
"gopkg.in/src-d/go-git.v4"
1313

14+
"github.com/vim-volt/volt/gateway/buildinfo"
1415
"github.com/vim-volt/volt/gitutil"
1516
"github.com/vim-volt/volt/lockjson"
1617
"github.com/vim-volt/volt/logger"
1718
"github.com/vim-volt/volt/pathutil"
1819
"github.com/vim-volt/volt/plugconf"
19-
"github.com/vim-volt/volt/subcmd/buildinfo"
2020
)
2121

2222
type symlinkBuilder struct {
File renamed without changes.

subcmd/cmd.go renamed to gateway/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package subcmd
1+
package gateway
22

33
import (
44
"flag"

subcmd/disable.go renamed to gateway/disable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package subcmd
1+
package gateway
22

33
import (
44
"flag"

0 commit comments

Comments
 (0)