Skip to content
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 some cli_utils helpers. #59

Merged
merged 6 commits into from
Feb 16, 2016
Merged

Add some cli_utils helpers. #59

merged 6 commits into from
Feb 16, 2016

Conversation

Natim
Copy link
Member

@Natim Natim commented Feb 11, 2016

Revamp of #34

@Natim
Copy link
Member Author

Natim commented Feb 11, 2016

r? @almet

return auth


def client_from_args(args):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create_client_from_args

def client_from_args(args):
"""Return a client from parser args."""
return Client(server_url=args.server,
auth=get_auth(args.auth),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably call get_auth at the same time we get the options. Not sure if it's possible to do it via argparse?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@almet
Copy link
Member

almet commented Feb 11, 2016

Yay! I like it :-)

@leplatrem
Copy link
Contributor

nit: mentions in docs ?

leplatrem added a commit that referenced this pull request Feb 16, 2016
Add some cli_utils helpers.
@leplatrem leplatrem merged commit 89b430a into master Feb 16, 2016
@leplatrem leplatrem deleted the cli-utils branch February 16, 2016 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants