mission-control-cli

    Mission Control command-line application

    mission-control
    command-line
    moonx
    Download zip
    Author
    Version
    0.3.0
    License
    Apache-2.0
    Last updated
    1 hour ago
    Downloads
    84

    #mission-control

    The Mission Control command.

    mission-control version mission-control help mission-control config show

    Commands are a noun and a verb, such as mission-control kb validate. mission-control kb lists the commands of the kb noun. Every command accepts --format text (the default) or --format jsonl, which writes one JSON record on each line of standard output; see the record schemas. Messages for people go to standard error.

    #Validate knowledge bundles

    mission-control kb validate docs # every bundle under docs mission-control kb validate docs/decisions/0001.md # one document mission-control kb validate 0001.md --related # and its linked documents mission-control kb validate docs --use openspec --use rules/decisions.yaml mission-control kb validate docs --format jsonl | jq -c 'select(.finding)'

    kb validate takes directories and Markdown files as targets, or JSONL records and paths on standard input with --stdin. --select KEY=VALUE keeps the documents that match (type, status, tag, bundle or a frontmatter key). --related[=DEPTH] and --direction both|out|in add linked documents. --use NAME|PATH turns on a built-in profile or a rule pack, --severityRULE=LEVEL and --skip RULE change rules, and --strict makes warnings fail. See Validate knowledge bundles.

    #Inspect rules and rule packs

    mission-control kb rules list docs # the active rules, their sources and layers mission-control kb rules show decision-needs-owner # one rule and what the layers did to it mission-control kb rules check rules/decisions.yaml # check that packs parse (none: the configured packs) mission-control kb rules test rules/decisions.yaml # run the test cases of packs on their fixtures mission-control kb profiles list # the built-in profiles mission-control kb profiles show openspec

    kb rules list and kb rules show take the same targets and options as kbvalidate, so they show the rules that a run of kb validate would use. kbrules check and kb rules test exit with 1 when a pack has a problem or a test case fails.

    The command reads its settings from YAML configuration files, such as .config/mission-control/config.yaml in a repository, and from the root index.md of each bundle. See Configuration.

    The command exits with 0 for success, 1 for a failure and 2 for a usage error, such as an unknown command. --help after any command prints its options.

    On Windows, help and version work, and the kb and config commands stop with a message: they read paths with / between names only.

    Install a native binary from a GitHub release:

    mise use -g github:moonrockz/mission-control

    Run the published module without a native install:

    moonx moonrockz/mission-control-cli@latest version

    Source Files