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§
Sourcefn build_args(&self) -> Vec<String>
fn build_args(&self) -> Vec<String>
Build the command arguments
Provided Methods§
Sourcefn execute(&self, executor: &GhExecutor) -> Result<String>
fn execute(&self, executor: &GhExecutor) -> Result<String>
Execute the command and return raw string output