Пример #1
0
def main_run():
    """Starts coconut-run."""
    Command().start(run=True)
Пример #2
0
def main():
    """Starts coconut."""
    Command().start()
Пример #3
0
def main_run():
    """Starts Coconut with the --run and --quiet options."""
    Command().start(run=True)
Пример #4
0
# IMPORTS:
#-----------------------------------------------------------------------------------------------------------------------

from __future__ import print_function, absolute_import, unicode_literals, division

from coconut.root import *  # NOQA

from coconut.exceptions import CoconutException
from coconut.command import Command
from coconut.constants import version_tag, version_long

#-----------------------------------------------------------------------------------------------------------------------
# COMMAND:
#-----------------------------------------------------------------------------------------------------------------------

CLI = Command()


def cmd(args, interact=False):
    """Processes command-line arguments."""
    if isinstance(args, (str, bytes)):
        args = args.split()
    return CLI.cmd(args=args, interact=interact)


VERSIONS = {
    "num": VERSION,
    "name": VERSION_NAME,
    "spec": VERSION_STR,
    "tag": version_tag,
    "-v": version_long,
Пример #5
0
def main():
    """Runs the Coconut CLI."""
    Command().start()