Skip to content

Create an example/template for using click with sub-command plugins #9

@travishathaway

Description

@travishathaway

Checklist

  • I added a descriptive title
  • I searched open requests and couldn't find a duplicate

What is the idea?

For this upcoming issue: conda/conda#11777 we plan on adding support for using CLI parsing libraries like click to the sub-command plugin hook system for conda. This issue will create an example in this repository that will be available to our users.

What should happen?

There's already a pretty well fleshed out example in the following pull request: conda/conda#12285 Implementing this issue will involve copying that example over here.

To make the example a little more useful, it would be nice to add usage of the conda API. For example, we could print some properties stored on the context object:

from conda.base.context import context

print(context.active_prefix)

Other examples are welcome and potential assignees are encouraged to use their imagination 😄 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogissue has been triaged but has not been earmarked for any upcoming releaselocked[bot] locked due to inactivitystale[bot] marked as stale due to inactivitystale::closed[bot] closed after being marked as staletype::featurerequest for a new feature or capability

    Type

    No type

    Projects

    Status

    🏁 Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions