pub struct CommandContext {
pub repo_root_path: PathBuf,
pub config: Config,
pub project_finders: Vec<Box<dyn ProjectFinder>>,
}Expand description
Shared setup context for all CLI commands.
Contains git repository path, loaded config, and initialized project finders. Instantiated once per command to avoid repetitive setup code.
Fields§
§repo_root_path: PathBufRoot path of the git repository
config: ConfigLoaded configuration from .changepacks/config.json
project_finders: Vec<Box<dyn ProjectFinder>>Project finders for all supported languages
Implementations§
Auto Trait Implementations§
impl Freeze for CommandContext
impl !RefUnwindSafe for CommandContext
impl Send for CommandContext
impl Sync for CommandContext
impl Unpin for CommandContext
impl UnsafeUnpin for CommandContext
impl !UnwindSafe for CommandContext
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