Skip to content

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 force-pushed the backends-as-cli-sub-commands branch from 33b8fbf to e09dcf4 Compare January 9, 2024 15:38
@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