Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bbbmon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bbb
bbbmon
Commits
f6c81fda
Commit
f6c81fda
authored
5 years ago
by
David Huss
Browse files
Options
Downloads
Patches
Plain Diff
Add --short and --all options
parent
c4230bbc
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bbbmon/bbbmon.py
+14
-3
14 additions, 3 deletions
bbbmon/bbbmon.py
pyproject.toml
+1
-1
1 addition, 1 deletion
pyproject.toml
with
15 additions
and
4 deletions
bbbmon/bbbmon.py
+
14
−
3
View file @
f6c81fda
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
pyproject.toml
+
1
−
1
View file @
f6c81fda
[tool.poetry]
name
=
"bbbmon"
version
=
"0.1.1
3
"
version
=
"0.1.1
4
"
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>"
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment