pub enum ExportFormat {
Bash,
Makefile,
Markdown,
GithubAction,
GitlabCi,
Dockerfile,
Circleci,
}Expand description
Available export formats for sessions.
Variants§
Bash
Bash shell script with set -e
Makefile
Makefile with command targets
Markdown
Markdown documentation with code blocks
GithubAction
GitHub Actions workflow YAML
GitlabCi
GitLab CI/CD pipeline YAML
Dockerfile
Dockerfile with RUN commands
Circleci
CircleCI configuration YAML
Implementations§
Source§impl ExportFormat
impl ExportFormat
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Returns a one-line description for this format.
Sourcepub fn name(&self) -> &'static str
pub fn name(&self) -> &'static str
Returns the kebab-case name for this format as clap displays it.
Sourcepub fn all_names() -> Vec<&'static str>
pub fn all_names() -> Vec<&'static str>
Returns all format names as clap would display them (kebab-case).
Uses clap’s ValueEnum::value_variants() to iterate all variants,
ensuring the list stays in sync with the enum definition.
Sourcepub fn all_with_descriptions() -> Vec<(&'static str, &'static str)>
pub fn all_with_descriptions() -> Vec<(&'static str, &'static str)>
Returns (name, description) pairs for all formats.
Useful for –help text and error messages.
Trait Implementations§
Source§impl Clone for ExportFormat
impl Clone for ExportFormat
Source§fn clone(&self) -> ExportFormat
fn clone(&self) -> ExportFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExportFormat
impl Debug for ExportFormat
Source§impl ValueEnum for ExportFormat
impl ValueEnum for ExportFormat
Auto Trait Implementations§
impl Freeze for ExportFormat
impl RefUnwindSafe for ExportFormat
impl Send for ExportFormat
impl Sync for ExportFormat
impl Unpin for ExportFormat
impl UnwindSafe for ExportFormat
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
Mutably borrows from an owned value. Read more