Skip to content
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

Idea: sopel-plugins new CLI #2660

Open
dgw opened this issue Feb 23, 2025 · 0 comments · May be fixed by #2661
Open

Idea: sopel-plugins new CLI #2660

dgw opened this issue Feb 23, 2025 · 0 comments · May be fixed by #2661
Labels
Milestone

Comments

@dgw
Copy link
Member

dgw commented Feb 23, 2025

It's possible to invoke cookiecutter programmatically, meaning we could have a CLI command shipped with the bot that starts generating a new plugin. Couple preliminary details:

  • sopel-plugins new is just my initial thought. Could be called something else, or live in a different namespace (e.g. separate this and any future developer-oriented commands into a sopel-dev CLI)
  • While Sopel could just auto-install cookiecutter as a dependency, alternatively, this can be an optional feature:
    try:
        from cookiecutter.main import cookiecutter
    except ImportError:
        print("To use this feature, install the `cookiecutter` package and try again")

(This random idea brought to you by streamlining the name of our cookiecutter template repo.)

@dgw dgw added the Feature label Feb 23, 2025
@dgw dgw linked a pull request Feb 25, 2025 that will close this issue
4 tasks
@dgw dgw added this to the 8.1.0 milestone Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant