Skip to content
mutastic

Rust edition

mutastic gate check

Say whether a gated task is done: its changed lines' mutants caught. Runs the mutants on the lines changed since gate open. The task is done when each is caught or proposed for a person to ignore, no ignore was made by the task, and no test was taken away or ignored; until then it says what's left, as the agent format does. With --hook it answers as the agent's hook, and lets the agent stop, saying what's left, when it changed nothing since it was sent back, or after --tries.

Usage

Terminal window
mutastic gate check [dir]

Inside a package, cargo mutastic gate check runs the same command, with the same options.

Exit status

0 when the task is done, 1 when it isn't, 2 when no task is open. With --hook, 0 either way: the answer is what it prints, a block or a message, as the agent's hooks read it, and with nothing open the agent may stop. Any command exits 2 when mutastic couldn't run: see exit codes.

Options

--hook=AGENT

Run as the agent's hook: read its input on stdin, and answer as its hooks do.

One of claude

Command line--hook=AGENT

--tries=N

With --hook, how many times check sends the agent back before it lets it stop and says what's left, from 1 to 100; 3 unless set.

Command line--tries=N

--edition=EDITION

Which edition runs; unless set, the build file in dir, or the nearest above it: Cargo.toml for rust, pom.xml, build.gradle or settings.gradle for java.

One of rustjava

Command line--edition=EDITION