/aide

Command line installer help framework

Primary LanguageGoApache License 2.0Apache-2.0

aide

Command line installer help framework.

The installation can be performed according to the installation configuration, and you can also quickly generate custom installation tools based on pipeline and stage.

How to use for golang library

go get -u github.com/zc2638/aide

Examples

参考

Pipeline

Supported prompt types:

  • Input
  • Password
  • Text
  • Confirm
  • Select
  • MultiSelect

1. Installation tool

For Normal

Download from Releases

For Bash Script

curl https://raw.githubusercontent.com/zc2638/aide/main/install.sh | bash

For Bash Script (Proxy)

curl https://ghproxy.com/raw.githubusercontent.com/zc2638/aide/main/install.sh | bash

For Gopher

go install github.com/zc2638/aide/cmd/aide@latest

2. Create the pipeline config file

You can define your own pipeline configuration.

pipeline.yaml

apiVersion: v1
kind: Pipeline
metadata:
  name: test
  label:
    project: aide
    version: v1
spec:
  prompts:
    - name: custom_name
      type: Input
      message: What's your name?
    - name: gender
      type: Select
      message: What's your gender?
      enum: [ "male", "female", "unknown" ]
  steps:
    - name: "step1"
      render:
        src: examples/file/test.in
        dest: testdata/test.out
    - command: env
    - command: echo $custom_name\($gender\)

3. Execute the pipeline according to the config file

aide apply -f pipeline.yaml