We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current usage of cd_tools is to first query from the DirParseState, and then extract the module you desire.
cd_tools
DirParseState
fn prompt_right(state: State<DirParseState>, sh: &Shell) -> StyledBuf { let project_info = default_prompt(&state, sh); let git_branch = state .get_module_metadata::<Git>("git") .map(|git| format!("git:{}", git.branch)); ... }
There is no reason why we can't just inject Git state directly into shell State and query using
Git
fn prompt_right(git_state: State<Git>, sh: &Shell) -> StyledBuf { let git_branch = format!("git:{}", git_state.branch); ... }
The text was updated successfully, but these errors were encountered:
nithinmuthukumar
No branches or pull requests
The current usage of
cd_tools
is to first query from theDirParseState
, and then extract the module you desire.There is no reason why we can't just inject
Git
state directly into shell State and query usingThe text was updated successfully, but these errors were encountered: