metadata:
name: jan
description: |
Example YAML spec for `jan-cli`: nested subcommands, progressive `--help`,
optional `exec` aliases, and SQLite audit logging keyed by git branch.
commands:
android:
about: |
Android-related workflows (illustrative tree only).
commands:
skills:
about: Skill discovery and maintenance.
commands:
list:
about: List skills (demo — runs echo).
exec:
argv: ["echo", "jan", "android", "skills", "list"]
tests:
given_no_args_when_listed_then_prints_path:
then: |
test "$JAN_STATUS" -eq 0
printf '%s\n' "$JAN_STDOUT" | grep -q "jan android skills list"
search:
about: Search with extra CLI args forwarded to the child process.
exec:
argv: ["echo", "search"]
passthrough: true
sample-script:
about: Example script with dependency PATH and external tools.
path: ./bin/sample-script
dependencies: [other-script]
requires: [fzf]
env:
JAN_SAMPLE: "1"
commands:
run:
about: Run the script; jan prepends dependency dirs and checks `requires`.
exec:
argv: ["bash", "-lc", "echo run"]
passthrough: true