mirror of
https://github.com/onyx-and-iris/obsws-cli.git
synced 2025-06-28 06:20:30 +01:00
rename heading variables
This commit is contained in:
parent
4bf8edb692
commit
d628c5d3a4
@ -62,8 +62,8 @@ def list_(
|
|||||||
(Text('Enabled', justify='center'), 'center', None),
|
(Text('Enabled', justify='center'), 'center', None),
|
||||||
(Text('Settings', justify='center'), 'center', ctx.obj['style'].column),
|
(Text('Settings', justify='center'), 'center', ctx.obj['style'].column),
|
||||||
]
|
]
|
||||||
for name, justify, style in columns:
|
for heading, justify, style in columns:
|
||||||
table.add_column(name, justify=justify, style=style)
|
table.add_column(heading, justify=justify, style=style)
|
||||||
|
|
||||||
for filter in resp.filters:
|
for filter in resp.filters:
|
||||||
resp = ctx.obj['obsws'].get_source_filter_default_settings(filter['filterKind'])
|
resp = ctx.obj['obsws'].get_source_filter_default_settings(filter['filterKind'])
|
||||||
|
@ -61,8 +61,8 @@ def list_(
|
|||||||
(Text('Group Name', justify='center'), 'left', ctx.obj['style'].column),
|
(Text('Group Name', justify='center'), 'left', ctx.obj['style'].column),
|
||||||
(Text('Enabled', justify='center'), 'center', None),
|
(Text('Enabled', justify='center'), 'center', None),
|
||||||
]
|
]
|
||||||
for column, justify, style in columns:
|
for heading, justify, style in columns:
|
||||||
table.add_column(column, justify=justify, style=style)
|
table.add_column(heading, justify=justify, style=style)
|
||||||
|
|
||||||
for item_id, group_name, is_enabled in groups:
|
for item_id, group_name, is_enabled in groups:
|
||||||
table.add_row(
|
table.add_row(
|
||||||
|
@ -74,8 +74,8 @@ def list_(
|
|||||||
(Text('Kind', justify='center'), 'center', ctx.obj['style'].column),
|
(Text('Kind', justify='center'), 'center', ctx.obj['style'].column),
|
||||||
(Text('Muted', justify='center'), 'center', None),
|
(Text('Muted', justify='center'), 'center', None),
|
||||||
]
|
]
|
||||||
for column, justify, style in columns:
|
for heading, justify, style in columns:
|
||||||
table.add_column(column, justify=justify, style=style)
|
table.add_column(heading, justify=justify, style=style)
|
||||||
|
|
||||||
for input_name, input_kind, input_uuid in inputs:
|
for input_name, input_kind, input_uuid in inputs:
|
||||||
input_mark = ''
|
input_mark = ''
|
||||||
|
@ -29,8 +29,8 @@ def list_(ctx: typer.Context):
|
|||||||
(Text('Profile Name', justify='center'), 'left', ctx.obj['style'].column),
|
(Text('Profile Name', justify='center'), 'left', ctx.obj['style'].column),
|
||||||
(Text('Current', justify='center'), 'center', None),
|
(Text('Current', justify='center'), 'center', None),
|
||||||
]
|
]
|
||||||
for column, justify, style in columns:
|
for heading, justify, style in columns:
|
||||||
table.add_column(column, justify=justify, style=style)
|
table.add_column(heading, justify=justify, style=style)
|
||||||
|
|
||||||
for profile in resp.profiles:
|
for profile in resp.profiles:
|
||||||
table.add_row(
|
table.add_row(
|
||||||
|
@ -43,8 +43,8 @@ def list_(
|
|||||||
(Text('Scene Name', justify='center'), 'left', ctx.obj['style'].column),
|
(Text('Scene Name', justify='center'), 'left', ctx.obj['style'].column),
|
||||||
(Text('Active', justify='center'), 'center', None),
|
(Text('Active', justify='center'), 'center', None),
|
||||||
]
|
]
|
||||||
for column, justify, style in columns:
|
for heading, justify, style in columns:
|
||||||
table.add_column(column, justify=justify, style=style)
|
table.add_column(heading, justify=justify, style=style)
|
||||||
|
|
||||||
for scene_name, scene_uuid in scenes:
|
for scene_name, scene_uuid in scenes:
|
||||||
if uuid:
|
if uuid:
|
||||||
|
@ -78,8 +78,8 @@ def list_(
|
|||||||
('Enabled', 'center', None),
|
('Enabled', 'center', None),
|
||||||
]
|
]
|
||||||
# Add columns to the table
|
# Add columns to the table
|
||||||
for column, justify, style in columns:
|
for heading, justify, style in columns:
|
||||||
table.add_column(column, justify=justify, style=style)
|
table.add_column(heading, justify=justify, style=style)
|
||||||
|
|
||||||
for item_id, item_name, is_group, is_enabled, source_uuid in items:
|
for item_id, item_name, is_group, is_enabled, source_uuid in items:
|
||||||
if is_group:
|
if is_group:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user