pub struct GetCommand { /* private fields */ }Expand description
Command for downloading and updating remote modules.
Downloads modules referenced in the configuration. This is also done
automatically by terraform init, but get is useful for updating
modules independently.
use terraform_wrapper::{Terraform, TerraformCommand};
use terraform_wrapper::commands::get::GetCommand;
let tf = Terraform::builder().working_dir("/tmp/infra").build()?;
GetCommand::new()
.update()
.execute(&tf)
.await?;Implementations§
Source§impl GetCommand
impl GetCommand
Trait Implementations§
Source§impl Clone for GetCommand
impl Clone for GetCommand
Source§fn clone(&self) -> GetCommand
fn clone(&self) -> GetCommand
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 GetCommand
impl Debug for GetCommand
Source§impl Default for GetCommand
impl Default for GetCommand
Source§fn default() -> GetCommand
fn default() -> GetCommand
Returns the “default value” for a type. Read more
Source§impl TerraformCommand for GetCommand
impl TerraformCommand for GetCommand
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 GetCommand
impl RefUnwindSafe for GetCommand
impl Send for GetCommand
impl Sync for GetCommand
impl Unpin for GetCommand
impl UnsafeUnpin for GetCommand
impl UnwindSafe for GetCommand
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