pub struct Workflow { /* private fields */ }Implementations§
Source§impl Workflow
impl Workflow
pub fn new(config: Config) -> Self
Sourcepub async fn commit_workflow(
&self,
files: Vec<String>,
opts: WorkflowOptions,
) -> Result<()>
pub async fn commit_workflow( &self, files: Vec<String>, opts: WorkflowOptions, ) -> Result<()>
Full workflow: stage → generate → confirm → commit → push.
This is the default ghsi behavior (the old gp alias).
Sourcepub async fn generate_message_only(&self) -> Result<()>
pub async fn generate_message_only(&self) -> Result<()>
Generate a message for already-staged changes. Does not commit.
Auto Trait Implementations§
impl Freeze for Workflow
impl RefUnwindSafe for Workflow
impl Send for Workflow
impl Sync for Workflow
impl Unpin for Workflow
impl UnsafeUnpin for Workflow
impl UnwindSafe for Workflow
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