github aquaproj/aqua v1.1.0-0

latest releases: v2.37.2, v2.37.1, v2.37.0...
pre-release2 years ago

Pull Requests | v1.0.0...v1.1.0-0

Feature

#575 Add aqua generate's -i option.

$ aqua g -i

When this option is set, the search result is added to the configuration file aqua.yaml instead of outputting to standard input.

e.g.

$ cat aqua.yaml
---
# aqua - Declarative CLI Version Manager
# https://aquaproj.github.io/
registries:
- type: standard
  ref: v1.3.0 # renovate: depName=aquaproj/aqua-registry

packages:
- name: suzuki-shunsuke/cmdx@v1.6.1
- name: golangci/golangci-lint@v1.43.0
- name: rhysd/actionlint@v1.6.8
- import: aqua/*.yaml

$ aqua g -i suzuki-shunsuke/tfcmt
$ cat aqua.yaml                         
---
# aqua - Declarative CLI Version Manager
# https://aquaproj.github.io/
registries:
- type: standard
  ref: v1.4.0 # renovate: depName=aquaproj/aqua-registry
packages:
- name: suzuki-shunsuke/cmdx@v1.6.1
- name: golangci/golangci-lint@v1.43.0
- name: rhysd/actionlint@v1.6.8
- import: aqua/*.yaml
- name: suzuki-shunsuke/tfcmt@v3.0.1
$ git diff aqua.yaml 
diff --git a/aqua.yaml b/aqua.yaml
index 2e42e6a..790ac5e 100644
--- a/aqua.yaml
+++ b/aqua.yaml
@@ -4,9 +4,9 @@
 registries:
 - type: standard
   ref: v1.4.0 # renovate: depName=aquaproj/aqua-registry
-
 packages:
 - name: suzuki-shunsuke/cmdx@v1.6.1
 - name: golangci/golangci-lint@v1.43.0
 - name: rhysd/actionlint@v1.6.8
 - import: aqua/*.yaml
+- name: suzuki-shunsuke/tfcmt@v3.0.1

⚠️ Known Issue

Unfortunately, when configuration file is updated with -i option, comments and indents in YAML are kept but new lines in YAML are removed.
Please see the above diff.
Please fix the issue if you can!

Others

Don't miss a new aqua release

NewReleases is sending notifications on new releases.