Discuss: CLI syntax sometimes requires subcommands to be named after project-specific predicates #7137
aaronsteers
started this conversation in
General
Replies: 1 comment
-
@aaronsteers I'm in favor of this. It aligns with our contributor guide https://docs.meltano.com/contribute/cli and also follows the implementation we've had for many of our more recent commands: meltano schedule set <schedule_name> --job <new-job>
meltano job set <job_name> --tasks
meltano environment list
meltano environment add <environment_name> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The general best practice for CLI subcommands is
However, Meltano's CLI often requires the object of the command to be specified before the subcommand is called.
For instance, we have:
Whereas a more traditional CLI invocation pattern would be:
Or:
Or the fully explicit:
Question
Should we look at unwinding this convention, and move towards a more standard convention where the top-level command or command group is followed by the subcommands, rather than interspersing commands and subcommmands with what otherwise would be
Backwards compatibility
If we do this, we'd likely want to explore if these could still be synonyms for backwards compatibility reasons:
Related
--help
formeltano config ... set
without a project dir context #7136Beta Was this translation helpful? Give feedback.
All reactions