pub enum CliInvocation {
Build,
Dev,
Check,
Deploy {
target: String,
},
Plugins {
json: bool,
target: Option<String>,
},
Audit,
Legacy,
}Expand description
Outcome of Cli::parse_and_dispatch — tells main/run which
subcommand was selected, or that the legacy form was used.
Variants§
Build
ssg build [--…] — produce a static site under the configured
output directory.
Dev
ssg dev [--…] — produce the site and start the dev server.
Check
ssg check [--…] — run validators with dry_run: true and exit.
Deploy
ssg deploy --target <target> — build then invoke the deploy
adapter for the chosen target.
Plugins
ssg plugins list [--json] — report the plugin pipeline without
building anything.
Fields
Audit
ssg audit [--gate <name>] [--json|--junit] [--fail-on <sev>] —
run the 15 native CI gates against the built site (issue #549).
Legacy
Legacy flag-only invocation (ssg -s public -w). Behaves like
Dev if --serve is present, otherwise like Build. Emits a
deprecation warning on stderr before dispatch.
Trait Implementations§
Source§impl Clone for CliInvocation
impl Clone for CliInvocation
Source§fn clone(&self) -> CliInvocation
fn clone(&self) -> CliInvocation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for CliInvocation
impl RefUnwindSafe for CliInvocation
impl Send for CliInvocation
impl Sync for CliInvocation
impl Unpin for CliInvocation
impl UnsafeUnpin for CliInvocation
impl UnwindSafe for CliInvocation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more