-
Notifications
You must be signed in to change notification settings - Fork 14
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
refacto: commands were cluttered + no cli help #111
Conversation
39bd4cf
to
c88639d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty good !
I added a few comments and would like to test it before approving it.
Since it changes the command-line interface, I will want to publish a version before the one containing these changes.
|
||
from aleph_client.cli_utils import ( | ||
_setup_logging, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using parenthesis here seems useless and overkill.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
channel = "Aleph network channel where the message is located" | ||
private_key = "Your private key. Cannot be used with --private-key-file" | ||
private_key_file = "Path to your private key file" | ||
ref = "Checkout https://aleph-im.gitbook.io/aleph-js/api-resources-reference/posts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Constants are usually in UPPER_CASE in Python.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
2359b60
to
5127fa4
Compare
Command Command |
Solution: put all commands in a sub folder and use typer subcommands Use typer.Option and typer.Argument to document each command parameter
b0e7436
to
96347e2
Compare
Did a force push since I rebased the current branch on main. It adds the persistent programs option in |
httpx is required in tests when using fastapi.testclient
9e91eb0
to
31cedef
Compare
The tests still fail due to an upgrade to |
Solution: put all commands in a sub folder and use typer subcommands
Use typer.Option and typer.Argument to document each command parameter