Your contribution is welcome! Thank you for your interest in contributing to the STACKIT CLI. We greatly value your feedback, feature requests, additions to the code, bug reports or documentation extensions.
Prerequisites:
The CLI commands are located under internal/cmd
, where each folder includes the source code for a group
of commands. Inside pkg
you can find several useful packages that are shared by the commands and provide additional functionality such as flags
, globalflags
, tables
, etc.
Check the Authentication section on the README.
These commands can be executed from the project root:
make project-tools
: install the required dependenciesmake build
: compile the CLI and save the binary under ./bin/stackitmake lint
: lint the codemake generate-docs
: generate Markdown documentation for every commandmake test
: run unit tests
To test your changes, you can either:
-
Build the application locally by running:
$ go build -o ./bin/stackit
To use the application from the root of the repository, you can run:
$ ./bin/stackit [group] [subgroup] [command] [flags]
-
Skip building and run the Go application directly using:
$ go run . [group] [subgroup] [command] [flags]
To make your contribution, follow these steps:
- Check open or recently closed Pull Requests and Issues to make sure the contribution you are making has not been already tackled by someone else.
- Fork the repo.
- Make your changes in a branch that is up-to-date with the original repo's
main
branch. - Commit your changes including a descriptive message
- Create a pull request with your changes.
- The pull request will be reviewed by the repo maintainers. If you need to make further changes, make additional commits to keep commit history. When the PR is merged, commits will be squashed.
If you would like to report a bug, please open a GitHub issue.
To ensure we can provide the best support to your issue, follow these guidelines:
- Go through the existing issues to check if your issue has already been reported.
- Make sure you are using the latest version of the provider, we will not provide bug fixes for older versions. Also, latest versions may have the fix for your bug.
- Please provide as much information as you can about your environment, e.g. your version of Go, your version of the provider, which operating system you are using and the corresponding version.
- Include in your issue the steps to reproduce it, along with code snippets and/or information about your specific use case. This will make the support process much easier and efficient.