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) make the -b/--backend option a CLI sub-command #546

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SergioSim
Copy link
Collaborator

Purpose

With the addition of more backends, the usage documentation of the ralph list/read/write and runserver commands became cluttered as we list all available backends with all their options.

Proposal

To keep the documentation concise, we propose to remove the -b/--backend option and use a backend sub-command instead. This allows us to have dedicated usage documentation for each backend. We also improve backend documentation by parsing method and settings docstrings to construct option help strings.

  • backends as sub-commands
  • parse backend method and settings docstring to construct option help strings
  • update changelog

@SergioSim SergioSim self-assigned this Dec 21, 2023
@SergioSim SergioSim force-pushed the backends-as-cli-sub-commands branch 5 times, most recently from 67f2597 to 33b8fbf Compare January 9, 2024 11:03
With the addition of more backends, the usage documentation of
the ralph list/read/write and runserver commands became cluttered
as we list all available backends with all their options.
Thus, to keep the documentation concise, we choose to remove the
-b/--backend option and use a backend sub-command instead.
This allows us to have dedicated usage documentation for each backend.
We also improve backend documentation by parsing method and settings
docstrings to construct option help strings.
@SergioSim SergioSim marked this pull request as ready for review January 9, 2024 15:54
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