-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add raw
command, a new module for common CLI options, and improve matrix raw
help
#129
Conversation
e64892b
to
530782a
Compare
- Create a new module synadm.cli._module holding command options and option groups supposed to be shared between commands. - Move some of groups and options of matrix-raw command into the new module since.
1f5cb6d
to
c02db9e
Compare
- New cli-level module "raw" containing "raw" command directly (without a group) - Copy boilerplate from "matrix raw" command - almost the same but still a little different - actually even simpler. - Import and use shared options from cli._common. - for `synadm raw --help` state the fact that URL encoding needs to be handled at this point already; add an example that includes an encoded URL for maximum clarity; and suggest the usage of the global verbose flag.
c02db9e
to
8d92852
Compare
bf9db72
to
aefbb13
Compare
- Use proper rst syntax for stating commands/cli/monospaced (double backticks), which improves rendered docs and still looks good enough in --help on the shell. - Clarify which config settings we are referring to. - Format token precedence list with \b (displays linebreaks as-is; renders nicely on the shell as well as in the Sphinx docs. - Add an "insecure warning"
to ensure monospace font.
aefbb13
to
6e52699
Compare
Thanks for a quick review. Not so much about the technicalities, but about the many fixes/clarifications/format-improvements I tried to squeeze into --help of both, the existing I tested the feature and since it's a simpler version of The behaviour of both |
raw
command, a new module for common CLI options, and improve matrix raw
help
@JacksonChen666 I decided that this is most probably good and spare you the testing/reviewing. I think it's fine and blast radius is narrow. Let's get it out there. I'll even release it shortly.... |
Addressing 2 things:
synadm raw
that should, very similar to what we have insynadm matrix raw
, be able to rudimentary issue custom requests (that don't have their own synadm commmand yet).synadm.cli._common
containing such options and option groups.raw
command will make use of it.