ComposeCommand

Trait ComposeCommand 

Source
pub trait ComposeCommand {
    type Output;

    // Required methods
    fn subcommand(&self) -> &'static str;
    fn build_args(&self) -> Vec<String>;
    fn execute<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn config(&self) -> &ComposeConfig;
}
Expand description

Common trait for all compose commands (existing pattern)

Required Associated Types§

Source

type Output

The output type this command produces

Required Methods§

Source

fn subcommand(&self) -> &'static str

Get the compose subcommand name (e.g., “up”, “down”, “ps”)

Source

fn build_args(&self) -> Vec<String>

Build command-specific arguments

Source

fn execute<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Execute the command

Source

fn config(&self) -> &ComposeConfig

Get the compose configuration

Implementors§