kythera snapshot
On this page
NAME
kythera-snapshot
- Run the Kythera snapshot command.
DESCRIPTION
This Rust command represents the CLI arguments for the Kythera snapshot command.
USAGE
kythera snapshot [OPTIONS] <Path to artifacts>
OPTIONS
--snap <FILE>
Output file for the gas snapshot. (Default: .gas-snapshot)
--diff <FILE>
Output a diff against a pre-existing snapshot. By default, the comparison is done with .gas-snapshot
.
--check <FILE>
Compare against a pre-existing snapshot, exiting with code 1 if they do not match. Outputs a diff if the snapshots do
not match. By default, the comparison is done with .gas-snapshot
.
EXAMPLE
- Generate a gas snapshot:
kythera snapshot path/to/artifacts
- Generate a gas snapshot and output a diff against a pre-existing snapshot:
kythera snapshot --diff existing-snapshot.path path/to/artifacts
- Compare against a pre-existing snapshot and output a diff if they don’t match:
kythera snapshot --check existing-snapshot.path path/to/artifacts