-
Notifications
You must be signed in to change notification settings - Fork 12
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
Token path argument #329
Token path argument #329
Conversation
def __init__(self): | ||
self.token_file = dds_cli.TOKEN_FILE | ||
def __init__(self, token_path=None): | ||
if token_path is None: |
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.
(Minor comment: You don't need the is None
here, if not token_path
also works)
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.
Nice! Looks good and works!
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.
👍
A new argument
--token-path
is added and used as such:I also moved the username printing for the logo inside the
dds_main
. As a consequence, it will now not be printed if you rundds --help
ordds --version
, but otherwise it should be printed.Also, if the username is not found, for example if no token is found, it's not printed at all. This can of course be adjusted however we want to.
Feel free to squash merge this as the commits became a bit messy.
Before submitting a PR to the
dev
branch:dev
branchAdditional checks before submitting a PR to the
master
branch:setup.py
(?)