Skip to main content

cargo_tangle/command/dev/
mod.rs

1//! `cargo-tangle dev` — zero-config local Tangle devnet with Blueprint Manager.
2//!
3//! Replaces the shell-scripted boot sequence (anvil → keystore → manager → permitted caller
4//! → write .tangle.toml) with a single command. Runs detached so it doesn't block the terminal;
5//! `dev down` tears everything down.
6
7pub mod down;
8pub mod status;
9pub mod up;
10
11use clap::Subcommand;
12
13#[derive(Subcommand, Debug)]
14pub enum DevCommands {
15    /// Boot a local devnet: Anvil with seeded contracts, Blueprint Manager, and a
16    /// pre-registered operator. Writes `.tangle.toml` so every other cargo-tangle
17    /// command works with zero arguments in this directory.
18    Up(up::UpArgs),
19    /// Stop the local devnet and remove its scratch directory.
20    Down(down::DownArgs),
21    /// Show the status of the local devnet.
22    Status,
23}