github aquaproj/aqua v1.14.0

latest releases: v2.28.1, v2.28.0, v2.28.0-1...
23 months 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.