https://github.com/raylas/run
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/raylas/run
- Owner: raylas
- Created: 2024-06-14T23:53:01.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-13T06:56:28.000Z (over 1 year ago)
- Last Synced: 2025-02-13T07:33:02.508Z (over 1 year ago)
- Language: Go
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# run
Run autosemantic scripts in a Kubernetes context, or locally.
```bash
run [command]
```
## Catalog
Place scripts in `catalog/`.
For positional argument discovery, use the following format for script headers:
```bash
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p inetutils
#
## Traceroute to a host
# host: Host to traceroute to
# timeout: Timeout in seconds [30]
```
Where:
- `#! /usr/bin/env nix-shell` let's Nix know what's coming
- `#! nix-shell -i bash -p inetutils` Tells nix-shell to:
- Use `bash` as the shell
- Make `inetutils` available in said shell
- `## Traceroute to a host` is the subcommand description
- `# timeout: Timeout in seconds [30]` is:
- `timeout` is the flag name
- `Timeout in seconds` is the flag description
- `30` is the default value