lib.App: Add _root_cmd()
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m15s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m11s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 3m56s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m0s
CI / Packaging test (push) Successful in 0s
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 4m15s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 4m11s
CI / Packaging test (pull_request) Successful in 0s
CI / Packaging - Kali Linux (push) Successful in 3m56s
CI / Packaging - OpenSUSE Tumbleweed (push) Successful in 4m0s
CI / Packaging test (push) Successful in 0s
Expose __root_cmd (the command which may or may not be mounted at the root of the subcommand hierarchy) as _root_cmd() to derived classes. This supports jw-ev's App base class, which specializes it to get hold of jw.ev.app.Cmd's specific properties. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
6b4bcdfaf8
commit
13004d8909
1 changed files with 3 additions and 0 deletions
|
|
@ -402,6 +402,9 @@ class App: # export
|
|||
def call_async(self, awaitable: Awaitable[T], timeout: float | None = None) -> T:
|
||||
return self.async_runner.call(awaitable, timeout)
|
||||
|
||||
def _root_cmd(self) -> AbstractCmd | None:
|
||||
return self.__root
|
||||
|
||||
@property
|
||||
def eloop(self) -> asyncio.AbstractEventLoop:
|
||||
if self.__eloop is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue