Skip to content

Commit 0fb5f65

Browse files
committed
chore: rename new package to commands
1 parent 757c01f commit 0fb5f65

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

cmd/golangci-lint/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66
"runtime/debug"
77

8-
"github.com/golangci/golangci-lint/pkg/cmder"
8+
"github.com/golangci/golangci-lint/pkg/commands"
99
"github.com/golangci/golangci-lint/pkg/exitcodes"
1010
)
1111

@@ -29,14 +29,14 @@ func main() {
2929
}
3030
}
3131

32-
info := cmder.BuildInfo{
32+
info := commands.BuildInfo{
3333
GoVersion: goVersion,
3434
Version: version,
3535
Commit: commit,
3636
Date: date,
3737
}
3838

39-
if err := cmder.Execute(info); err != nil {
39+
if err := commands.Execute(info); err != nil {
4040
_, _ = fmt.Fprintf(os.Stderr, "failed executing command with error %v\n", err)
4141
os.Exit(exitcodes.Failure)
4242
}

pkg/cmder/cache.go renamed to pkg/commands/cache.go

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

33
import (
44
"fmt"

pkg/cmder/config.go renamed to pkg/commands/config.go

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

33
import (
44
"fmt"

pkg/cmder/flagsets.go renamed to pkg/commands/flagsets.go

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

33
import (
44
"fmt"
@@ -8,7 +8,7 @@ import (
88
"github.com/spf13/pflag"
99
"github.com/spf13/viper"
1010

11-
"github.com/golangci/golangci-lint/pkg/cmder/internal"
11+
"github.com/golangci/golangci-lint/pkg/commands/internal"
1212
"github.com/golangci/golangci-lint/pkg/config"
1313
"github.com/golangci/golangci-lint/pkg/exitcodes"
1414
"github.com/golangci/golangci-lint/pkg/lint/lintersdb"

pkg/cmder/help.go renamed to pkg/commands/help.go

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

33
import (
44
"fmt"
File renamed without changes.

pkg/cmder/linters.go renamed to pkg/commands/linters.go

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

33
import (
44
"fmt"

pkg/cmder/root.go renamed to pkg/commands/root.go

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

33
import (
44
"errors"

pkg/cmder/run.go renamed to pkg/commands/run.go

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

33
import (
44
"bytes"

pkg/cmder/version.go renamed to pkg/commands/version.go

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

33
import (
44
"encoding/json"

0 commit comments

Comments
 (0)