diff --git a/.github/workflows/fig.yaml b/.github/workflows/fig.yaml deleted file mode 100644 index e044a99c..00000000 --- a/.github/workflows/fig.yaml +++ /dev/null @@ -1,34 +0,0 @@ -name: 'Publish minectl spec' -on: - push: - tags: - - '*' -jobs: - push-to-fig-autocomplete: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 - - name: Set up Go - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 - with: - go-version: 1.21.x - - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - - - name: Generate the spec - run: go mod tidy && go run . generateFigSpec > minectl.ts - - - name: Create Autocomplete PR ## Create the autocomplete PR using this action - uses: withfig/push-to-fig-autocomplete-action@fb320c27ec12b225b9446373aa30b7d9c0c1eae8 # v2.4.0 - with: - token: ${{ secrets.GH_PAT }} - autocomplete-spec-name: minectl - spec-path: minectl.ts - integration: cobra diff --git a/cmd/minectl/minectl.go b/cmd/minectl/minectl.go index 28a11f5e..66089076 100644 --- a/cmd/minectl/minectl.go +++ b/cmd/minectl/minectl.go @@ -12,8 +12,6 @@ import ( "go.uber.org/zap" - cobracompletefig "github.com/withfig/autocomplete-tools/integrations/cobra" - "github.com/blang/semver/v4" "github.com/dirien/minectl/internal/logging" "github.com/dirien/minectl/internal/provisioner" @@ -327,7 +325,6 @@ func init() { minectlCmd.AddCommand(pluginCmd) minectlCmd.AddCommand(rconCmd) minectlCmd.AddCommand(updateCmd) - minectlCmd.AddCommand(cobracompletefig.CreateCompletionSpecCommand()) } func Execute(version, gitCommit, date string) error { diff --git a/go.mod b/go.mod index 61437d74..aa6e4e04 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,6 @@ require ( github.com/pkg/errors v0.9.1 github.com/spf13/cobra v1.8.1 github.com/tcnksm/go-latest v0.0.0-20170313132115-e3007ae9052e - github.com/withfig/autocomplete-tools/integrations/cobra v1.2.1 github.com/xeipuuv/gojsonschema v1.2.0 go.uber.org/zap v1.27.0 sigs.k8s.io/yaml v1.4.0 diff --git a/go.sum b/go.sum index 9bb62aa2..47dadc13 100644 --- a/go.sum +++ b/go.sum @@ -374,8 +374,6 @@ github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyC github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= github.com/vultr/govultr/v3 v3.8.1 h1:vBcXOA1BjFmo5D4ZPLOD1PVGfFEOgTCUpgedbhB7/Ig= github.com/vultr/govultr/v3 v3.8.1/go.mod h1:Rd8ebpXm7jxH3MDmhnEs+zrlYW212ouhx+HeUMfHm2o= -github.com/withfig/autocomplete-tools/integrations/cobra v1.2.1 h1:+dBg5k7nuTE38VVdoroRsT0Z88fmvdYrI2EjzJst35I= -github.com/withfig/autocomplete-tools/integrations/cobra v1.2.1/go.mod h1:nmuySobZb4kFgFy6BptpXp/BBw+xFSyvVPP6auoJB4k= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo= github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=