pub enum WorkspaceSub {
Scratch(ScratchArgs),
Candidate(CandidateArgs),
Promote(PromoteArgs),
Finalize(FinalizeArgs),
Bundle(BundleArgs),
Unbundle(UnbundleArgs),
}Expand description
Subcommands of zenith workspace.
Variants§
Scratch(ScratchArgs)
Record, list, and inspect scratch design candidates for a document.
Scratch candidates are content-addressed .zen snapshots stored in the
session data directory alongside the durable version history. Use new
to record a candidate, list to enumerate them, and show to inspect
a specific one.
Candidate(CandidateArgs)
Transition a scratch candidate’s lifecycle status (draft → selected | rejected).
Promote(PromoteArgs)
Promote a selected candidate into a target page of the deliverable document.
Fetches the candidate’s stored .zen snapshot, deep-copies the source page’s
content into the named target page (suffixing all ids), validates the result,
and writes the mutated document back in place. The promote is recorded in
version history. The candidate must have status selected; use
zenith workspace candidate to transition it first.
Finalize(FinalizeArgs)
Clean up rejected scratch candidates according to their cleanup policy.
Candidates with status = rejected and cleanup_policy = delete are
removed from the scratch index. Their snapshot objects are left in the
object store for a future GC pass. All other candidates are preserved.
Bundle(BundleArgs)
Pack a document’s entire session store into a portable .zenithbundle file.
The bundle is a deterministic, C-free DEFLATE archive containing every object, version record, run log, scratch candidate, and metadata file for the document. Same store bytes in → same bundle bytes out.
Unbundle(UnbundleArgs)
Restore a document’s session store from a .zenithbundle file.
Extracts the bundle into the default store directory and prints the restored doc-id.
Trait Implementations§
Source§impl Debug for WorkspaceSub
impl Debug for WorkspaceSub
Source§impl FromArgMatches for WorkspaceSub
impl FromArgMatches for WorkspaceSub
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for WorkspaceSub
impl Subcommand for WorkspaceSub
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for WorkspaceSub
impl RefUnwindSafe for WorkspaceSub
impl Send for WorkspaceSub
impl Sync for WorkspaceSub
impl Unpin for WorkspaceSub
impl UnsafeUnpin for WorkspaceSub
impl UnwindSafe for WorkspaceSub
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.