Skip to content
Snippets Groups Projects
Commit 9410fc7c authored by Erik Hedenström's avatar Erik Hedenström
Browse files

feat: Update CI/CD, dependency versions, and command structure

- Remove unnecessary stages and scripts related to building and uploading to S3 in `.gitlab-ci.yml`
- Update Golang version to 1.21 in `.gitlab-ci.yml`
- Exclude `README.md` from secret detection in `.gitlab-ci.yml`
- Add constant import from `gitlab.hedenstroem.com/go/udm-query/constant` in `cmd/root.go`
- Remove `Execute` function in `cmd/root.go`
- Add `Version` field to `RootCmd` in `cmd/root.go`
- Add `DisableAutoGenTag` field to `RootCmd` and set it to `true` in `cmd/root.go`
- Remove `cmd/root.go` file from the root of the repository
- Added `.vscode/tasks.json` file containing tasks configuration in JSON format
- Tasks in `.vscode/tasks.json` include commands for installation, setting up zsh completion, and publishing a Fig spec
- Remove `github.com/hashicorp/consul/api` v1.12.0 dependency in `go.sum`
- Remove `github.com/sagikazarmark/crypt` v0.4.0 dependency in `go.sum`
- Add `github.com/withfig/autocomplete-tools/integrations/cobra` v1.2.1 dependency in `go.sum`
- Added a package registry link for all versions in `README.md`
- Added a new command "udm-query generate-fig-spec" in `docs/udm-query.md`
- Removed the command "udm-query version" in `docs/udm-query.md`
- Added `docs/udm-query_generate-fig-spec.md` file containing a command to generate a Fig spec for a Cobra CLI
- Updated Go version from 1.17 to 1.21 in `go.mod`
- Added new required module `github.com/withfig/autocomplete-tools/integrations/cobra@v1.2.1` in `go.mod`
- Added `cmd/generate_fig_spec.go` file with an `init` function and imported `cobracompletefig` package in `cmd/generate_fig_spec.go`
- Added a command to `RootCmd` in `cmd/generate_fig_spec.go`
- Updated `cmd.Execute()` to `cmd.RootCmd.Execute()` in `main.go`
- Ignore `main` and `udm-query` files in version control in `.gitignore`
- Exclude `.fig-spec.ts` file generated by vscode from version control in `.gitignore`
parent 9ed715e7
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment