Pull Requests | Issues | v2.43.3...v2.44.0
Features
#3537 init: add a command line option -d
#3528 Support import_dir
and add command line options -u
and -i
to aqua init
command
aqua init -d # Create a directory `aqua` and create `aqua/aqua.yaml`
aqua init -u # Create aqua.yaml with `import_dir: imports`
aqua init -i pkgs # Create aqua.yaml with `import_dir: pkgs`
e.g. aqua.yaml
registries:
- type: standard
ref: v4.311.0
import_dir: imports
You can use import_dir
and packages
at the same time.
In addition to packages
, aqua searches packages from the directory specified with import_dir
.
import_dir: imports
is equivalent to the following settings.
packages:
- import: imports/*.yml
- import: imports/*.yaml
And if import_dir
is set, aqua g -i
command creates a directory <import_dir>
and adds packages to the file <import_dir>/<command name>.yaml
.
For instance, if import_dir
is imports
, aqua g -i cli/cli
creates a directory imports
and adds cli/cli to imports/gh.yaml
.
If the package has multiple commands, <command name>
is the first command name in the files
setting.
For instance, in case of FiloSottile/age
, <command name>
is age
.
files:
- name: age
src: age/age
- name: age-keygen
src: age/age-keygen
Fixes
#3537 init: Fix file existence check
aqua init
skips creating a configuration file if configuration files already exist.
This release improves the logic.