We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 258dbc8 commit 90db05bCopy full SHA for 90db05b
bin/cli.py
@@ -821,6 +821,24 @@ def create(
821
print("User already exists.")
822
sys.exit(1)
823
824
+ def list(
825
+ self, output = "table", columns = User.default_display_fields,
826
+ ):
827
+ """Retrieve the list of Users
828
+ :param output: how to display the output [text|table|json]
829
+ """
830
+ if output == "table":
831
+ print(get_client().user.list().tabulate(columns=columns))
832
+ elif output == "text":
833
+ print(
834
+ get_client()
835
+ .user.list()
836
+ .tabulate(
837
+ columns=columns, style="plain", display_headers=False,
838
+ )
839
840
+ else:
841
+ print(get_client().user.list().json)
842
# raise NotImplementedError
843
844
0 commit comments