adnv CLI
Installation
Install latest release version:
$ cargo install --git https://gitlab.com/adnap/tools/adnv.git --tag v1.5.0 -F cli
Install latest develop version:
$ cargo install --git https://gitlab.com/adnap/tools/adnv.git --branch develop -F cli
Usage
Config file
Default config file is "adnv.yml" in current path.
The default config file can be overwritten withADNV_CONFIG_FILEenvironment variable. It can be the path to the config file, or the path to a directory that contains a config file named "adnv.yml".
All can be overwritten calling CLI with config : adnv [-c/--config <CONFIG_FILE>] <COMMAND>.
Run
Check
Outdated
Update
Inline Hints (Common to update & outdated)
In terraform files, inner dependencies in terraform modules can also be tracked using Inline hints.
A Inline Hint is a templated comment :
# @adnv source "<FORMATED_URL>" "<VERSION_CONSTRAINT>"
where FORMATED_URL can either be :
- a helm repository :
helm+<REPOSITORY_URL>#name=<NAME> - a gitlab repository :
terraform://<REPOSITORY_URL>
VERSION_CONSTRAINT must respect semver (if helm) ou terraform versioning format (if terraform).
Outdated and Update commands will consider the Inline Hint line as instruction to process the first next line.
Example