|
12345678910111213141516171819202122232425262728293031323334353637383940 |
- from cli import *
- from cli_Context import *
-
- def cli_test_greetUser(
- ) -> str:
- c = cli_createContext()
- c = cli_greetUser(c)
- if (
- c.recentField == "outputGreeting"
- ):
- return "OK: cli_greetUser"
- #}
- return "ERR: cli_greetUser"
- #}
-
- def cli_test_showHelp_h(
- ) -> str:
- c = cli_createContext()
- c.input = "h"
- c = cli_showHelp(c)
- if (
- c.recentField == "outputHelp"
- ):
- return "OK: cli_showHelp_h"
- #}
- return "ERR: cli_showHelp_h"
- #}
-
- def cli_test_showHelp_help(
- ) -> str:
- c = cli_createContext()
- c.input = "help"
- c = cli_showHelp(c)
- if (
- c.recentField == "outputHelp"
- ):
- return "OK: cli_showHelp_help"
- #}
- return "ERR: cli_showHelp_help"
- #}
|