Skip to content

Commit bed36d2

Browse files
authored
Merge pull request #273 from gatewayd-io/add-plugin-install-command
Add `plugin install` subcommand
2 parents 6f2ecbe + d6becc5 commit bed36d2

File tree

9 files changed

+456
-15
lines changed

9 files changed

+456
-15
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install Go 🧑‍💻
3838
uses: actions/setup-go@v3
3939
with:
40-
go-version: '1.20'
40+
go-version: "1.20"
4141

4242
- run: |
4343
git config --global url."https://mostafa:${TOKEN}@github.com/".insteadOf "https://github.com"
@@ -85,7 +85,7 @@ jobs:
8585
- name: Install Go 🧑‍💻
8686
uses: actions/setup-go@v3
8787
with:
88-
go-version: '1.20'
88+
go-version: "1.20"
8989

9090
- run: |
9191
git config --global url."https://mostafa:${TOKEN}@github.com/".insteadOf "https://github.com"
@@ -112,6 +112,7 @@ jobs:
112112
verificationPolicy: "passdown"
113113
compatibilityPolicy: "strict"
114114
acceptancePolicy: "accept"
115+
terminationPolicy: "stop"
115116
metricsMergerPeriod: 1s
116117
healthCheckPeriod: 1s
117118
reloadOnCrash: true

.golangci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ linters-settings:
5757
- "github.com/hashicorp/go-plugin"
5858
- "github.com/mitchellh/mapstructure"
5959
- "github.com/google/go-cmp"
60-
- ""
61-
- ""
60+
- "github.com/google/go-github/v53/github"
61+
- "github.com/codingsince1985/checksum"
6262
test:
6363
files:
6464
- $test

cmd/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
// configCmd represents the config command.
1010
var configCmd = &cobra.Command{
1111
Use: "config",
12-
Short: "Manage GatewayD configuration",
12+
Short: "Manage GatewayD global configuration",
1313
Run: func(cmd *cobra.Command, args []string) {
1414
if err := cmd.Help(); err != nil {
1515
log.New(cmd.OutOrStdout(), "", 0).Fatal(err)

cmd/config_init.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
package cmd
22

33
import (
4-
"os"
5-
64
"github.com/gatewayd-io/gatewayd/config"
75
"github.com/spf13/cobra"
86
)
97

10-
var (
11-
force bool
12-
filePermissions os.FileMode = 0o644
13-
)
8+
var force bool
149

1510
// configInitCmd represents the plugin init command.
1611
var configInitCmd = &cobra.Command{

cmd/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
// pluginCmd represents the plugin command.
1010
var pluginCmd = &cobra.Command{
1111
Use: "plugin",
12-
Short: "Manage plugins",
12+
Short: "Manage plugins and their configuration",
1313
Run: func(cmd *cobra.Command, args []string) {
1414
if err := cmd.Help(); err != nil {
1515
log.New(cmd.OutOrStdout(), "", 0).Fatal(err)

0 commit comments

Comments
 (0)