GhCommand

Trait GhCommand 

Source
pub trait GhCommand {
    // Required method
    fn build_args(&self) -> Vec<String>;

    // Provided method
    fn execute(&self, executor: &GhExecutor) -> Result<String> { ... }
}
Expand description

Base trait for all GitHub CLI command builders This implements the Command Pattern

Required Methods§

Source

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

Build the command arguments

Provided Methods§

Source

fn execute(&self, executor: &GhExecutor) -> Result<String>

Execute the command and return raw string output

Implementors§