This is a small starter project for working on a GoLang CLI in Gitpod. The code is based on the Cobra framework and its generator.
-
Create a fresh project in your account based on this template.
-
Install Gitpod's GitHub App on your account.
The app will install a webook on your project to get informed when branches are pushed or updated. Gitpod will then prebuild your dev environments ahead of time, so noone has to wait for dependency installation and initialization anymore. -
Run your first prebuild by prefixing https://gitpod.io#prebuild/ to the URL of the repository.
The revised URL is:https://gitpod.io/#prebuild/https://github.com/<orgname>/<projectname>/
.
Gitpod displays the prebuild logs by running the init commands in the.gitpod.yml
file and starts a first workspace based on the results afterwards. Later, when you create a new workspace on a branch, or pull/merge request, for which a prebuild exists, the workspace loads much faster, because all dependencies are already downloaded and the code is compiled. For more information, see prebuilds. -
Share with your team ๐