Run autosemantic scripts in a Kubernetes context, or locally.
run [command]
Place scripts in catalog/
.
For positional argument discovery, use the following format for script headers:
#! /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
- Use
## Traceroute to a host
is the subcommand description# timeout: Timeout in seconds [30]
is:timeout
is the flag nameTimeout in seconds
is the flag description30
is the default value