pub struct ForceUnlockCommand { /* private fields */ }Expand description
Command for manually releasing a stuck state lock.
Requires a lock ID as a positional argument. Use -force to skip the
confirmation prompt.
use terraform_wrapper::{Terraform, TerraformCommand};
use terraform_wrapper::commands::force_unlock::ForceUnlockCommand;
let tf = Terraform::builder().working_dir("/tmp/infra").build()?;
ForceUnlockCommand::new("lock-id-here")
.force()
.execute(&tf)
.await?;Implementations§
Trait Implementations§
Source§impl Clone for ForceUnlockCommand
impl Clone for ForceUnlockCommand
Source§fn clone(&self) -> ForceUnlockCommand
fn clone(&self) -> ForceUnlockCommand
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 ForceUnlockCommand
impl Debug for ForceUnlockCommand
Source§impl TerraformCommand for ForceUnlockCommand
impl TerraformCommand for ForceUnlockCommand
Source§type Output = CommandOutput
type Output = CommandOutput
The output type produced by this command.
Source§async fn execute(&self, tf: &Terraform) -> Result<CommandOutput>
async fn execute(&self, tf: &Terraform) -> Result<CommandOutput>
Execute this command against the given Terraform client.
Source§fn supports_input(&self) -> bool
fn supports_input(&self) -> bool
Whether this command supports the
-input=false flag. Read moreAuto Trait Implementations§
impl Freeze for ForceUnlockCommand
impl RefUnwindSafe for ForceUnlockCommand
impl Send for ForceUnlockCommand
impl Sync for ForceUnlockCommand
impl Unpin for ForceUnlockCommand
impl UnsafeUnpin for ForceUnlockCommand
impl UnwindSafe for ForceUnlockCommand
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