https://github.com/zc2638/aide
Command line installer help framework
https://github.com/zc2638/aide
Last synced: 5 months ago
JSON representation
Command line installer help framework
- Host: GitHub
- URL: https://github.com/zc2638/aide
- Owner: zc2638
- License: apache-2.0
- Created: 2021-09-18T07:35:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-22T03:35:42.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T00:33:35.515Z (almost 2 years ago)
- Language: Go
- Size: 111 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
[**参考**](https://github.com/zc2638/aide/blob/main/examples)
## Pipeline
Supported prompt types:
- Input
- Password
- Text
- Confirm
- Select
- MultiSelect
### 1. Installation tool
#### For Normal
Download from [Releases](https://github.com/zc2638/aide/releases)
#### For Bash Script
```shell
curl https://raw.githubusercontent.com/zc2638/aide/main/install.sh | bash
```
#### For Bash Script (Proxy)
```shell
curl https://ghproxy.com/raw.githubusercontent.com/zc2638/aide/main/install.sh | bash
```
#### For Gopher
```shell
go install github.com/zc2638/aide/cmd/aide@latest
```
### 2. Create the pipeline config file
You can define your own pipeline configuration.
pipeline.yaml
```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
```shell
aide apply -f pipeline.yaml
```