Skip to main content

Module prelude

Module prelude 

Source
Expand description

Glob-importable convenience prelude for downstream fn main().

Re-exports§

pub use crate::application::Application;

Structs§

App
Strongly-typed application context threaded through every command handler.
CommandSpec
Static descriptor of a Command.
CredentialRef
Declarative reference to a credential that the Resolver walks through the documented precedence chain: env > keychain > literal > fallback_env.
Features
Immutable set of runtime-enabled features.
NoCredentials
Convenience: an empty provider. Used by App::for_testing and any tool that hasn’t wired a provider yet.
ToolMetadata
Static tool metadata set at construction time.
VersionInfo
Version information captured at build time.

Enums§

Feature
Built-in feature identifiers that can be toggled at runtime.
HelpChannel
User-support channel advertised in error output.
ReleaseSource
Release-source descriptor. Drives the version and update subcommands — rtb-vcs resolves this into a concrete ReleaseProvider.
RtbError
Umbrella error enum for the framework.
UpdatePolicy
Author-set baseline for synchronous, pre-run self-update checks.

Statics§

BUILTIN_COMMANDS
Link-time registry of Command factory functions.

Traits§

Command
The contract every CLI subcommand implements.
CredentialBearing
Exposes the CredentialRefs in a downstream tool’s config to rtb-cli’s credentials subtree.
CredentialProvider
Type-erased credential listing. Stored on crate::app::App as Option<Arc<dyn CredentialProvider>>.

Functions§

compile_bounded
Compile an untrusted pattern under fixed memory bounds.

Type Aliases§

RtbResult
Canonical framework result alias.