The gen
command family is designed to create common files in repositories, adapted specifically for the repository flavour and/or programming language used.
Files are written to the current directory. The assumption is that the current working directory is the root directory of a cloned repository.
Usually these commands are executed via automation in the giantswarm/github repository, but this can also be done manually/locally.
Note: the added files are not meant for later editing, as changes would be overwritten by a subsequent devctl
execution.
Creates common GitHub actions workflows (for CI/CD) in the .github/workflows
directory.
Example:
devctl gen workflows --flavour cli
Creates common Makefile
and includes in the root directory.
Example:
devctl gen workflows --flavour cli --language go
Generates a renovate.json5
file in the repo root to configure renovate, which automatically updates dependencies in the configured repository.
devctl gen renovate --language LANGUAGE
Note: The LANGUAGE
value is not validated currently. From code, as of writing this docs, go
and python
were the only values checked for. (Usability improvement welcome!)