github aquaproj/aqua v1.14.0

latest releases: v2.37.2, v2.37.1, v2.37.0...
2 years ago

Pull Requests | Issues | v1.13.0...v1.14.0

Features

#623 #927 @4513ECHO Improve JSON Schema
#922 #926 #927 #928 #929 #930 #931 #932 #933 #934 Add a subcommand generate-registry (gr) to generate a Registry Package Configuration

Add a subcommand generate-registry (gr) to generate a Registry Package Configuration

#922 #926 #927 #928 #929 #930 #931 #932 #933 #934

Usage

$ aqua help gr
NAME:
   aqua generate-registry - Generate a registry's package configuration

USAGE:
   aqua generate-registry <package name>

DESCRIPTION:
   Generate a template of Registry package configuration.
   
   Note that you probably fix the generate code manually.
   The generate code is not perfect and may include the wrong configuration.
   It is just a template.
   
   e.g.
   
   $ aqua gr cli/cli # Outputs the configuration.
   packages:
     - type: github_release
       repo_owner: cli
       repo_name: cli
       asset: gh_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{Format}}
       format: tar.gz
       description: GitHub’s official command line tool
       replacements:
         darwin: macOS
       overrides:
         - goos: windows
           format: zip
       supported_envs:
         - darwin
         - linux
         - amd64
       rosetta2: true

e.g.

$ aqua gr cli/cli
packages:
  - type: github_release
    repo_owner: cli
    repo_name: cli
    asset: gh_{{trimV .Version}}_{{.OS}}_{{.Arch}}.{{Format}}
    format: tar.gz
    description: GitHub’s official command line tool
    replacements:
      darwin: macOS
    overrides:
      - goos: windows
        format: zip
    supported_envs:
      - darwin
      - linux
      - amd64
    rosetta2: true

Why is the feature needed?

This feature allows you to add packages to Registries easily.
New contributors can contribute to the Standard Registry easily.
And it decreases the burden to add many packages to a Registry.

Don't miss a new aqua release

NewReleases is sending notifications on new releases.