https://github.com/drone/go-task
https://github.com/drone/go-task
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/drone/go-task
- Owner: drone
- License: other
- Created: 2024-03-11T17:13:09.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-10-06T21:20:39.000Z (9 months ago)
- Last Synced: 2025-10-06T23:24:27.723Z (9 months ago)
- Language: Go
- Size: 187 KB
- Stars: 6
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This repository provides a simple module for implementing delegate tasks. This repository comes with a sample `main.go` executable that demonstrates how this module can be used.
Exec a script (built-in):
```sh
./go-task --pretty samples/sample-exec.json
```
Get a secret from a file (built-in):
```sh
./go-task --pretty samples/sample-file.json
```
Get a secret (built-in) and use in script (built-in):
```sh
./go-task --pretty samples/sample-file-echo.json
```
Get a multi-line secret (built-in) and use in script (built-in):
```sh
./go-task --pretty samples/sample-file-echo-multiline.json
```
Get a user (cgi):
```sh
./go-task --pretty samples/get-user/task.json
```
Get a user list (cgi):
```sh
./go-task --pretty samples/get-user-list/task.json
```
Get a secret from vault (cgi):
```sh
./go-task --pretty samples/get-secret/task.json
```
Get a user (cgi) using a remote artifact (git):
```sh
./go-task --pretty samples/sample-cgi-from-repo.json
```