JSON output for account show

This commit is contained in:
Ivan Kravets
2016-12-05 16:50:23 +02:00
parent c14f515526
commit cd51f7c5b0
2 changed files with 13 additions and 2 deletions

View File

@ -30,4 +30,14 @@ Description
Show detailed information about :ref:`cmd_account`:
* Active groups and expiration
* Group permissions
* Group permissions
Options
~~~~~~~
.. program:: platformio account show
.. option::
--json-output
Return the output in `JSON <http://en.wikipedia.org/wiki/JSON>`_ format

View File

@ -62,5 +62,6 @@ def account_forgot(**kwargs):
@cli.command("show", short_help="PIO Account information: groups, permissions")
def account_show():
@click.option("--json-output", is_flag=True)
def account_show(**kwargs):
pioplus_call(sys.argv[1:])