NFCLI Client API
PICLE Shell CLient¤
Client that implements interactive shell to work with NorFab.
ShowNorfabWorkersModel
¤
Bases: BaseModel
run(*args: object, **kwargs: object) -> object
staticmethod
¤
Show broker-known workers with live process metrics, grouped by service.
Source code in norfab\clients\nfcli_shell\nfcli_shell_client.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 | |
NorFabShell
¤
Bases: BaseModel
cmd_preloop_override() -> None
classmethod
¤
This method called before CMD loop starts
Source code in norfab\clients\nfcli_shell\nfcli_shell_client.py
525 526 527 528 | |
mount_shell_plugins(shell: App, inventory: object) -> None
¤
Mounts shell plugins to the given shell application.
This function iterates over the plugins in the inventory and mounts those that have an "nfcli" configuration to the shell application.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
shell
|
App
|
The shell application to which the plugins will be mounted. |
required |
inventory
|
object
|
An object containing the plugins to be mounted.
It should have an attribute |
required |
Returns:
| Type | Description |
|---|---|
None
|
None |
Source code in norfab\clients\nfcli_shell\nfcli_shell_client.py
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 | |