mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-05-23 06:51:13 +08:00
* use platform cli everywhere * cli w same color as platform * same colors as platform * fix tests
24 lines
481 B
Python
24 lines
481 B
Python
"""OpenBB Platform CLI entry point."""
|
|
|
|
import sys
|
|
|
|
|
|
def main():
|
|
"""Use the main entry point for the OpenBB Platform CLI."""
|
|
print("Loading...\n") # noqa: T201
|
|
|
|
# pylint: disable=import-outside-toplevel
|
|
from openbb_cli.config.setup import bootstrap
|
|
from openbb_cli.controllers.cli_controller import launch
|
|
|
|
bootstrap()
|
|
|
|
dev = "--dev" in sys.argv[1:]
|
|
debug = "--debug" in sys.argv[1:]
|
|
|
|
launch(dev, debug)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|