cli (call): Add no_ui output:
`no_ui` output is used when a local UI must not be created, e.g.; because the stream is piped out. The `--no-ui` option has been removed because using a dedicated output seems like a better approach.
This commit is contained in:
parent
fa2144a167
commit
07fe13698c
1 changed files with 82 additions and 7 deletions
|
|
@ -23,7 +23,6 @@ import importlib
|
|||
import logging
|
||||
from typing import Any
|
||||
import sys
|
||||
import select
|
||||
|
||||
|
||||
from libervia.backend.core.i18n import _
|
||||
|
|
@ -52,14 +51,13 @@ class Common(base.CommandBase):
|
|||
"gui": partial(self.use_output, "gui"),
|
||||
#: experimental TUI output
|
||||
"tui": partial(self.use_output, "tui"),
|
||||
#: No UI is created.
|
||||
"no_ui": partial(self.use_output, "no_ui"),
|
||||
},
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
def add_parser_options(self):
|
||||
self.parser.add_argument(
|
||||
"--no-ui", action="store_true", help=_("disable user interface")
|
||||
)
|
||||
self.parser.add_argument(
|
||||
"-s",
|
||||
"--sources",
|
||||
|
|
|
|||
Loading…
Reference in a new issue