Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
Show 18 variants Release {
Show 45 fields crate_names: Vec<String>, all: bool, force: bool, snapshot: bool, nightly: bool, dry_run: bool, clean: bool, skip: Vec<String>, token: Option<String>, timeout: String, parallelism: Option<usize>, auto_snapshot: bool, single_target: bool, targets: Option<String>, host_targets: bool, release_notes: Option<PathBuf>, workspace: Option<String>, preflight: bool, no_preflight: bool, strict_preflight: bool, draft: bool, release_header: Option<PathBuf>, release_header_tmpl: Option<PathBuf>, release_footer: Option<PathBuf>, release_footer_tmpl: Option<PathBuf>, release_notes_tmpl: Option<PathBuf>, fail_fast: bool, no_gate_submitter: bool, rollback: Option<String>, simulate_failure: Vec<String>, rollback_only: bool, from_run: Option<String>, allow_rerun: bool, show_skipped: bool, allow_nondeterministic: Vec<String>, summary_json: Option<PathBuf>, allow_ai_failure: bool, split: bool, merge: bool, publish_only: bool, prepare: bool, announce_only: bool, resume_release: bool, replace_existing: bool, no_post_publish_poll: bool,
}, Build { crate_names: Vec<String>, timeout: String, parallelism: Option<usize>, single_target: bool, workspace: Option<String>, output: Option<PathBuf>, skip: Vec<String>, }, Check { cmd: CheckCmd, }, Init { version_files: bool, exclude: Vec<String>, yes: bool, }, Changelog { range: Option<String>, format: ChangelogFormat, write: bool, crate_name: Option<String>, snapshot: bool, }, Completion { shell: Shell, }, Healthcheck, Preflight { json: bool, publish_only: bool, skip: Vec<String>, token: Option<String>, }, Man, Jsonschema, ResolveTag { tag: String, json: bool, }, Targets { json: bool, crate_names: Vec<String>, }, Tag { dry_run: bool, custom_tag: Option<String>, version_override: Option<String>, default_bump: Option<String>, crate_name: Option<String>, push: bool, no_push: bool, push_remote: Option<String>, push_dry_run: bool, changelog: bool, sub: Option<TagSub>, }, Continue { merge: bool, dist: Option<PathBuf>, dry_run: bool, skip: Vec<String>, token: Option<String>, }, Publish { dry_run: bool, token: Option<String>, dist: Option<PathBuf>, merge: bool, allow_rerun: bool, show_skipped: bool, }, Bump {
Show 14 fields level_or_version: Option<String>, package: Vec<String>, workspace: bool, exclude: Vec<String>, pre: Option<String>, exact: bool, allow_dirty: bool, yes: bool, dry_run: bool, commit: bool, changelog: bool, sign: bool, commit_message: Option<String>, output: String,
}, Announce { dry_run: bool, dist: Option<PathBuf>, token: Option<String>, skip: Vec<String>, merge: bool, }, Notify { message: String, publishers: Vec<String>, skip: Vec<String>, dry_run: bool, },
}

Variants§

§

Release

Run the full release pipeline

Fields

§crate_names: Vec<String>
§all: bool
§force: bool
§snapshot: bool
§nightly: bool
§dry_run: bool
§clean: bool
§skip: Vec<String>
§timeout: String
§parallelism: Option<usize>
§auto_snapshot: bool
§single_target: bool
§targets: Option<String>
§host_targets: bool
§release_notes: Option<PathBuf>
§workspace: Option<String>
§preflight: bool
§no_preflight: bool
§strict_preflight: bool
§draft: bool
§release_header: Option<PathBuf>
§release_header_tmpl: Option<PathBuf>
§release_footer: Option<PathBuf>
§release_footer_tmpl: Option<PathBuf>
§release_notes_tmpl: Option<PathBuf>
§fail_fast: bool
§no_gate_submitter: bool
§rollback: Option<String>
§simulate_failure: Vec<String>
§rollback_only: bool
§from_run: Option<String>
§allow_rerun: bool
§show_skipped: bool
§allow_nondeterministic: Vec<String>
§summary_json: Option<PathBuf>
§allow_ai_failure: bool
§split: bool
§merge: bool
§publish_only: bool
§prepare: bool
§announce_only: bool
§resume_release: bool
§replace_existing: bool
§no_post_publish_poll: bool
§

Build

Build binaries only (always runs in snapshot mode)

Fields

§crate_names: Vec<String>
§timeout: String
§parallelism: Option<usize>
§single_target: bool
§workspace: Option<String>
§output: Option<PathBuf>
§skip: Vec<String>
§

Check

Validate configuration and run determinism checks

Fields

§

Init

Generate starter config, or enroll version-bearing files

Fields

§version_files: bool
§exclude: Vec<String>
§yes: bool
§

Changelog

Manage CHANGELOG.md: refresh the pending section, or render notes/JSON

Fields

§write: bool
§crate_name: Option<String>
§snapshot: bool
§

Completion

Generate shell completions

Fields

§shell: Shell
§

Healthcheck

Check availability of required external tools

§

Preflight

Verify the environment can run the configured release: required tools, env vars/secrets (presence only — values are never printed), endpoint reachability, docker daemon, and loadable key material, all derived from the resolved config. Every failure is reported in one pass and the exit code is non-zero when anything is missing. The same checks run automatically at the start of anodizer release.

Fields

§json: bool
§publish_only: bool
§skip: Vec<String>
§

Man

Generate man pages to stdout

§

Jsonschema

Output JSON Schema for .anodizer.yaml

§

ResolveTag

Resolve a git tag to its matching crate in the config

Fields

§json: bool
§

Targets

Emit the configured build targets as a GitHub Actions matrix.

Derives {os, target, artifact} entries from .anodizer.yaml. Consumed by anodizer-action’s split-matrix output to feed a strategy.matrix dynamically (via fromJson).

Fields

§json: bool
§crate_names: Vec<String>
§

Tag

Auto-tag based on commit message directives

Fields

§dry_run: bool
§custom_tag: Option<String>
§version_override: Option<String>

Tag exactly this semver version, bypassing autotag derivation and the Cargo.toml-ahead guard.

Accepts 1.2.3 or v1.2.3 (the v/configured prefix is normalized). The version is applied to the tag AND synced into the relevant Cargo.toml / version_files (single-crate, --crate, and lockstep modes). In per-crate workspace mode it is rejected unless --crate <name> selects a single crate — one version across independently versioned crates would corrupt their cadences. Intended for release recovery where the operator must pin a precise version.

§default_bump: Option<String>
§crate_name: Option<String>
§push: bool
§no_push: bool
§push_remote: Option<String>
§push_dry_run: bool
§changelog: bool
§sub: Option<TagSub>

anodize tag rollback [...] — failure-recovery counterpart.

Subcommand is optional: bare anodize tag keeps its existing autotag behavior; only anodize tag rollback invokes the rollback flow.

§

Continue

Resume a release after a transient failure or after --prepare/--split

With --merge: load every per-target context.json under dist/ (one per split-build worker) and run the full post-build pipeline (sign / checksum / sbom / release / publish / announce).

Without --merge: load existing dist/ artifacts and run the publish-only pipeline (release / publish / blob). Use this to resume a single-host release that stalled during publish (e.g. expired token, transient 5xx) without rebuilding.

continue vs publish: both consume a populated dist/ and run the release / publish / blob chain. continue is the recommended alias for “resume a stalled single-host release” — the continue command and the in-repo --preparecontinue flow. publish is the lower-level entry point that does the same thing without the resume framing; prefer continue unless you’re invoking the publish chain on a dist that was never paused. Neither is being deprecated.

Fields

§merge: bool
§dry_run: bool
§skip: Vec<String>
§

Publish

Run only the publish stages (release, publish, blob) from a completed dist/

publish vs continue: both consume a populated dist/ and run the same release / publish / blob chain. publish is the lower-level entry point — no resume framing, no after-hooks / milestone closure. continue is the recommended alias when resuming a stalled single-host release (the continue command); it additionally invokes the announce stage and treats the dist as a paused-release surface. Prefer continue unless you specifically want the unframed publish chain. --dist overrides the configured dist directory; release has no --dist because it produces dist.

Fields

§dry_run: bool
§merge: bool
§allow_rerun: bool
§show_skipped: bool
§

Bump

Bump crate versions (Conventional Commits → semver level)

Infers the per-crate level from commits since each crate’s last tag when no positional argument is given. patch|minor|major, an explicit version, or release (strip prerelease) are also accepted.

Fields

§level_or_version: Option<String>
§package: Vec<String>
§workspace: bool
§exclude: Vec<String>
§exact: bool
§allow_dirty: bool
§yes: bool
§dry_run: bool
§commit: bool
§changelog: bool
§sign: bool
§commit_message: Option<String>
§output: String
§

Announce

Run only the announce stage from a completed dist/

Counterpart to release --announce-only: both re-fire announcers against a populated dist without re-publishing. The subcommand form (anodizer announce) accepts --dist to point at a non-default tree (e.g. preserved by --preserve-dist); the flag form (release --announce-only) operates on the dist configured in .anodizer.yaml. Both honor nightly short-circuit.

Fields

§dry_run: bool
§skip: Vec<String>
§merge: bool
§

Notify

Send a notification through configured announce integrations.

Fires configured announce integrations (slack, discord, webhook, …) with a Tera-rendered message. Unlike announce, this command does not require a dist/ directory — it is intended for ad-hoc notifications outside the release pipeline (e.g. CI status alerts, deployment notices).

Fields

§message: String

Message template to send. Supports standard Tera template vars (e.g. {{ ProjectName }}, {{ Tag }}, {{ Version }}).

§publishers: Vec<String>

Comma-separated list of integration names to fire (default: all). Valid names: discord, discourse, slack, webhook, telegram, teams, mattermost, reddit, twitter, mastodon, bluesky, linkedin.

§skip: Vec<String>

Comma-separated list of integration names to omit.

§dry_run: bool

Run without sending (dry-run mode).

Trait Implementations§

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more