Skip to content
Snippets Groups Projects
Commit f6c81fda authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Add --short and --all options

parent c4230bbc
No related branches found
No related tags found
No related merge requests found
......@@ -298,10 +298,21 @@ def main():
@click.option('--participants/--no-participants', default=True, show_default=True, help="Hide or show the participants")
@click.option('--meetings/--no-meetings', default=True, show_default=True, help="Hide or show the meetings")
@click.option('--presenter/--no-presenter', default=True, show_default=True, help="Hide or show the presenters")
@click.option('--presenter-id/--no-presenter-id', default=True, show_default=True, help="Hide or show the presenter IDs")
@click.option('--presenter-id/--no-presenter-id', default=False, show_default=True, help="Hide or show the presenter IDs")
@click.option('--short', '-s', is_flag=True, help="Print less")
@click.option('--all', '-a', 'all_', is_flag=True, help="Print all")
@click.option('--fancy/--no-fancy', default=True, show_default=True, help="Use fancy headers")
def meetings(ctx, leaderboards, participants, presenter, watch, presenter_id, meetings, endpoint, fancy):
def meetings(ctx, short, all_, leaderboards, participants, presenter, watch, presenter_id, meetings, endpoint, fancy):
"""View currently active meetings"""
if short:
leaderboards = False
if all_:
leaderboards = True
participants = True
presenter = True
presenter_id = True
meetings = True
config = init_config()
config.filter_endpoints(endpoint)
if watch is not None:
......@@ -319,7 +330,7 @@ def meetings(ctx, leaderboards, participants, presenter, watch, presenter_id, me
@click.option('--edit', is_flag=True, help="Open the config in the default editor")
@click.option('--print', 'print_', is_flag=True, help="Print the config to stdout")
@click.option('--path', is_flag=True, help="Print the path to the config")
def config(ctx, new, edit, path, print_):
def config(ctx, new, short, edit, path, print_):
"""Print, show or edit the config"""
user_config_path = get_user_config_path()
......
[tool.poetry]
name = "bbbmon"
version = "0.1.13"
version = "0.1.14"
description = "A small CLI utility to monitor bbb usage"
authors = ["David Huss <david.huss@hfbk-hamburg.de>"]
maintainers = ["David Huss <david.huss@hfbk-hamburg.de>"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment