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

cli: add sopel-config edit subcommand #2595

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

cli: add sopel-config edit subcommand #2595

wants to merge 1 commit into from

Conversation

dgw
Copy link
Member

@dgw dgw commented Feb 25, 2024

Opens the specified config file in the user's $EDITOR, obeying any environment variables like $SOPEL_CONFIG_DIR, as a convenience.

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make lint and make test)
  • I have tested the functionality of the things this change touches
    • Note: I'm not up for creating a whole test_cli_config.py suite from scratch for this. I verified that both error cases (empty/unset $EDITOR envvar, and nonexistent config file) are caught, and of course that the normal case opens an editor as intended.

@dgw dgw added this to the 8.1.0 milestone Feb 25, 2024
sopel/cli/config.py Fixed Show fixed Hide fixed
Opens the specified config file in the user's `$EDITOR`, obeying any
environment variables like `$SOPEL_CONFIG_DIR`, as a convenience.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant