:py:mod:`obr.cli` ================= .. py:module:: obr.cli .. autoapi-nested-parse:: Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -mobr` python will execute ``__main__.py`` as a script. That means there won't be any ``obr.__main__`` in ``sys.modules``. - When you import __main__ it will get executed again (as a module) because there's no ``obr.__main__`` in ``sys.modules``. Also see (1) from http://click.pocoo.org/5/setuptools/#setuptools-integration Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: obr.cli.common_params obr.cli.cli obr.cli.submit obr.cli.run obr.cli.init obr.cli.status obr.cli.query obr.cli.apply obr.cli.reset_workspace obr.cli.postProcess obr.cli.reset obr.cli.archive obr.cli.main .. py:function:: common_params(func) .. py:function:: cli(ctx: click.Context, **kwargs) .. py:function:: submit(ctx: click.Context, **kwargs) .. py:function:: run(ctx: click.Context, **kwargs) Run specified operations .. py:function:: init(ctx: click.Context, **kwargs) .. py:function:: status(ctx: click.Context, **kwargs) .. py:function:: query(ctx: click.Context, **kwargs) .. py:function:: apply(ctx: click.Context, **kwargs) .. py:function:: reset_workspace(confirmed) .. py:function:: postProcess(ctx: click.Context, **kwargs) .. py:function:: reset(ctx: click.Context, **kwargs) deletes workspace or cases .. py:function:: archive(ctx: click.Context, **kwargs) .. py:function:: main()