Skip to content

Commit

Permalink
chore: remove fig integration (#2114)
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Rancourt <[email protected]>
  • Loading branch information
krancour committed Jun 4, 2024
1 parent 3bbd425 commit 086477e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 29 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,24 +294,6 @@ jobs:
--distribution-id="${CF_DISTRIBUTION_ID}" \
--paths "/kargo-cli/unstable.txt"
push-fig-autocomplete-spec:
needs: [publish-cli]
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
- name: Generate the spec
run: |
curl -L https://github.com/akuity/kargo/releases/download/${{ github.ref_name }}/kargo-linux-amd64 -o kargo
chmod 755 kargo
./kargo fig > kargo-fig-spec.ts
- name: Create Autocomplete PR
uses: withfig/push-to-fig-autocomplete-action@v2
with:
autocomplete-spec-name: kargo
spec-path: kargo-fig-spec.ts
integration: cobra

combine_hashes:
needs: [publish-cli]
if: github.event_name == 'release'
Expand Down
8 changes: 0 additions & 8 deletions cmd/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"os"

"github.com/spf13/cobra"
cobracompletefig "github.com/withfig/autocomplete-tools/integrations/cobra"
"k8s.io/cli-runtime/pkg/genericiooptions"

"github.com/akuity/kargo/internal/cli/cmd/apply"
Expand Down Expand Up @@ -60,13 +59,6 @@ func NewRootCommand(cfg clicfg.CLIConfig) *cobra.Command {
cmd.AddCommand(verify.NewCommand(cfg))
cmd.AddCommand(version.NewCommand(cfg, streams))
cmd.AddCommand(server.NewCommand())
cmd.AddCommand(
cobracompletefig.CreateCompletionSpecCommand(
cobracompletefig.Opts{
Use: "fig",
},
),
)

return cmd
}
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ require (
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.9.0
github.com/technosophos/moniker v0.0.0-20210218184952-3ea787d3943b
github.com/withfig/autocomplete-tools/integrations/cobra v1.2.1
go.uber.org/ratelimit v0.3.1
golang.org/x/crypto v0.23.0
golang.org/x/net v0.25.0
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,6 @@ github.com/technosophos/moniker v0.0.0-20210218184952-3ea787d3943b/go.mod h1:O1c
github.com/urfave/cli v1.22.12/go.mod h1:sSBEIC79qR6OvcmsD4U3KABeOTxDqQtdDnaFuUN30b8=
github.com/vbatts/tar-split v0.11.3 h1:hLFqsOLQ1SsppQNTMpkpPXClLDfC2A3Zgy9OUU+RVck=
github.com/vbatts/tar-split v0.11.3/go.mod h1:9QlHN18E+fEH7RdG+QAJJcuya3rqT7eXSTY7wGrAokY=
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/xanzy/go-gitlab v0.105.0 h1:3nyLq0ESez0crcaM19o5S//SvezOQguuIHZ3wgX64hM=
github.com/xanzy/go-gitlab v0.105.0/go.mod h1:ETg8tcj4OhrB84UEgeE8dSuV/0h4BBL1uOV/qK0vlyI=
github.com/xlab/treeprint v1.2.0 h1:HzHnuAF1plUN2zGlAFHbSQP2qJ0ZAD3XF5XD7OesXRQ=
Expand Down

0 comments on commit 086477e

Please sign in to comment.