INNER CODE UNIT · Python
start
thevickypedia/Jarvis · jarvis/__init__.py:35
def start() -> None:
"""Start function to invoke Jarvis programmatically."""
init = __preflight_check__()
init()
def commandline() -> None:
"""Starter function to invoke Jarvis using commandline."""
# This is to validate that only 'jarvis' command triggers this function and not invoked by other functions
assert sys.argv[0].endswith("jarvis"), "Invalid commandline trigger!!"
options = {
"install": "Installs the main dependencies.",
"dev-install": "Installs the dev dependencies.",
"start | run": "Initiates Jarvis.",
"uninstall": "Uninstall the main dependencies",
"dev-uninstall": "Uninstall the dev dependencies",
"--version | -v": "Prints the version.",
"--help | -h": "Prints the help section.",