Rust referenceweave-loom
weave-loom · commands::mars
Source declarations, signatures and documentation for commands::mars.
Source: sigil/weave/tools/loom/src/commands/mars.rs. SHA-256: 16317e5cbb16b67853b7ac4e4ce3c71805f297acb603a289c567e3b740294b85.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
commands::mars::MarsArgs
Arguments for loom mars.
#[derive(Debug, clap::Args)]
pub struct MarsArgs {
/// Subcommand.
#[command(subcommand)]
pub action: MarsAction
}Source line: 13.
commands::mars::MarsAction
loom mars <subcommand>.
#[derive(Debug, Subcommand)]
pub enum MarsAction {
/// Register this repo as a MARS asset under `did:loom:<handle>:<name>`.
Register {
/// Owner handle (e.g. `ada`). Combined with `--name` to form the
/// canonical `did:loom:<handle>:<name>`.
#[arg(long)]
handle: String,
/// Asset name (typically the repo basename).
#[arg(long)]
name: String,
},
/// Show the current anchor for `--did`.
Show {
/// Canonical loom DID.
did: String,
},
/// Update the anchor's pointer to the current default-branch tip.
Update {
/// Canonical loom DID.
did: String,
},
/// Append a third-party attestation (Lens v1 via MarsStore).
Attest {
/// Canonical loom DID.
did: String,
/// Attestation kind (e.g. build, audit, license).
#[arg(long)]
kind: String,
/// Attestation body (URL, commit hash, note).
#[arg(long)]
body: String,
},
}Source line: 21.
commands::mars::run
Execute loom mars.
pub async fn run(args: MarsArgs) -> Result<()>;Source line: 59.