Skip to content

Commit

Permalink
Merge pull request #273 from gatewayd-io/add-plugin-install-command
Browse files Browse the repository at this point in the history
Add `plugin install` subcommand
  • Loading branch information
mostafa authored Jun 7, 2023
2 parents 6f2ecbe + d6becc5 commit bed36d2
Show file tree
Hide file tree
Showing 9 changed files with 456 additions and 15 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Install Go 🧑‍💻
uses: actions/setup-go@v3
with:
go-version: '1.20'
go-version: "1.20"

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

- run: |
git config --global url."https://mostafa:${TOKEN}@github.com/".insteadOf "https://github.com"
Expand All @@ -112,6 +112,7 @@ jobs:
verificationPolicy: "passdown"
compatibilityPolicy: "strict"
acceptancePolicy: "accept"
terminationPolicy: "stop"
metricsMergerPeriod: 1s
healthCheckPeriod: 1s
reloadOnCrash: true
Expand Down
4 changes: 2 additions & 2 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ linters-settings:
- "github.com/hashicorp/go-plugin"
- "github.com/mitchellh/mapstructure"
- "github.com/google/go-cmp"
- ""
- ""
- "github.com/google/go-github/v53/github"
- "github.com/codingsince1985/checksum"
test:
files:
- $test
Expand Down
2 changes: 1 addition & 1 deletion cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
// configCmd represents the config command.
var configCmd = &cobra.Command{
Use: "config",
Short: "Manage GatewayD configuration",
Short: "Manage GatewayD global configuration",
Run: func(cmd *cobra.Command, args []string) {
if err := cmd.Help(); err != nil {
log.New(cmd.OutOrStdout(), "", 0).Fatal(err)
Expand Down
7 changes: 1 addition & 6 deletions cmd/config_init.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
package cmd

import (
"os"

"github.com/gatewayd-io/gatewayd/config"
"github.com/spf13/cobra"
)

var (
force bool
filePermissions os.FileMode = 0o644
)
var force bool

// configInitCmd represents the plugin init command.
var configInitCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
// pluginCmd represents the plugin command.
var pluginCmd = &cobra.Command{
Use: "plugin",
Short: "Manage plugins",
Short: "Manage plugins and their configuration",
Run: func(cmd *cobra.Command, args []string) {
if err := cmd.Help(); err != nil {
log.New(cmd.OutOrStdout(), "", 0).Fatal(err)
Expand Down
Loading

0 comments on commit bed36d2

Please sign in to comment.