New issue
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
Shell Plugin Prototypes #12721
base: shell-plugins
Are you sure you want to change the base?
Shell Plugin Prototypes #12721
Conversation
Updated CLI argument parsing: * Refactored original parsing logic to make `activate`, `deactivate` and `reactivate` sub-parsers * created new _parse_and_set_args method that will override method in parent class * updated conda shell forwarding function for POSIX shells to handle evaluation of statements from plugin that uses current conda logic to carry out activation/deactivation processes --------- Signed-off-by: Katherine Abrikian <kalawac@users.noreply.github.com>
Final commit was missing from previous pull request. Signed-off-by: Katherine Abrikian <kalawac@users.noreply.github.com>
Updated CLI argument parsing: * Refactored original parsing logic to make `activate`, `deactivate` and `reactivate` sub-parsers * created new _parse_and_set_args method that will override method in parent class * updated conda shell forwarding function for POSIX shells to handle evaluation of statements from plugin that uses current conda logic to carry out activation/deactivation processes --------- Signed-off-by: Katherine Abrikian <kalawac@users.noreply.github.com>
Final commit was missing from previous pull request. Signed-off-by: Katherine Abrikian <kalawac@users.noreply.github.com>
d310ed3
to
2f03cbe
Compare
@hookimpl | ||
def conda_shell_plugins(): | ||
yield CondaShellPlugins( | ||
name="posix_plugin_current_logic", | ||
summary="Plugin for POSIX shells: handles conda activate, deactivate, and reactivate", | ||
activator=PosixPluginActivator, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these plugins for the conda_shell_plugins
hook aren't used anywhere (yet)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the gist indicates that the hook is just a placeholder for the moment. Eventually, there'll be some logic specific to the shell plugins there. I thought it was important to indicate that there probably would be a hook of some kind.
…into shell-plugins-dev
Description
Prototype plugins for spike issue #12621. The prototypes demonstrate three proposed architectural methods for plugins that handle, at minimum, conda's
activate
,deactivate
andreactivate
processes. See also the related gist with discussion points and architectural considerations for each prototype scenario.Checklist - did you ...
Add a file to thenews
directory (using the template) for the next release's release notes?Add / update outdated documentation?