NFCLI Client API
PICLE Shell CLient¤
Client that implements interactive shell to work with NorFab.
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
468 469 470 471 | |
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
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 | |