jan-cli 0.27.0

YAML-defined CLI trees with progressive help, optional exec aliases, merged extra specs, and SQLite audit logging keyed by git branch
Documentation
about: files utilities
commands:
  basename:
    about: Print the last path component of a path.
    commands:
      help:
        about: Describe this script.
        exec:
          text: |
            basename

            Print the last path component of a path.

            jan scripts files basename run -- /tmp/foo/bar.txt
      run:
        about: Print the basename of the given path.
        exec:
          argv:
            - bash
            - -lc
            - |
              set -euo pipefail
              if [[ $# -lt 1 ]]; then
                echo "usage: jan scripts files basename run -- <path>" >&2
                exit 2
              fi
              p="$1"
              p="${p%/}"
              printf '%s\n' "${p##*/}"
          passthrough: true