Skip to content

cli: tracebacks shown in too many places #2036

@dgw

Description

@dgw

Playing with Sopel's CLI tools on a fresh cloud instance, I found the following:

  • sopel-config init: mid-wizard, hitting Ctrl+C spits out a KeyboardInterrupt traceback
    • This should just abort creating the config, maybe with a "Config operation cancelled" message
  • sopel-plugins actions run when no config has been created yet spit out a sopel.config.ConfigurationNotFound traceback
    • These should catch and display a friendly error message only
    • Things like sopel-plugins show should probably work for core plugins at least even if no config exists? NAK, meh. Just say there's no config, same as the others
  • sopel-config list: no output if no configs exist
    • Not a traceback, but might as well be addressed at the same time.
    • An empty list would be appropriate for output intended for consumption by a script, but we intend Sopel's CLI utilities to be used by humans. A helpful message suggesting to run sopel-config init might be good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThings to squish; generally used for issues

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions