mortise-cli 1.0.1

The Mortise command line tool: checks the boundary rules of a Laravel app in CI and sends what it read to Mortise Cloud.
mortise-cli-1.0.1 is not a library.

mortise-cli

The command line tool of Mortise, binary mortise. It reads a Laravel app that uses nwidart/laravel-modules, without PHP, and checks its boundary rules in CI.

  • mortise check prints the problems of the app, each with its file and line, and exits 1 when a rule breaks. --format github marks each problem on its line in a pull request.
  • mortise push sends one read of the app to Mortise Cloud. The token comes from MORTISE_TOKEN only.

The tool writes nothing in the app.

Install

cargo install --locked mortise-cli

Each GitHub release also has a binary for Linux (x86_64 and arm64), macOS (Apple silicon) and Windows (x64), with SHA-256 sums. In GitHub Actions, the action nwidart/setup-mortise installs it.

Use

mortise check /path/to/laravel-app --format github
MORTISE_TOKEN=... mortise push /path/to/laravel-app

The flags and exit codes are in the command line reference.

Licence

MIT.