reqs-up

Simple CLI utility to update semver versions in ansible's requirements.yml files.

It tries to fetch remote url (only git supported at moment) and bump up version to latest one.

It is assumed that all urls is accesible or public (i.e. may be view by "git ls-remote" without manual authentication).

Note: all comments in YAML will be LOST (PR-s welcome)!

Examples

# reqs-up -f ./requirements.yaml
# reqs-up --dry-run
# reqs-up --minor
# reqs-up --patch

Output

When updating, the tool shows the old version, new version, and explanation:

ansible-role-1: 1.2.3 → 1.2.8 (max patch version for 1.2.x)
ansible-role-2: 1.2.3 → 1.9.5 (max minor version for 1.x)
ansible-role-3: 1.2.3 → 2.1.0 (latest)

Options

Note: --minor and --patch are mutually exclusive.