Beispiel #1
0
def main_run():
    """Starts coconut-run."""
    Command().start(run=True)
Beispiel #2
0
def main():
    """Starts coconut."""
    Command().start()
Beispiel #3
0
def main_run():
    """Starts Coconut with the --run and --quiet options."""
    Command().start(run=True)
Beispiel #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,
Beispiel #5
0
def main():
    """Runs the Coconut CLI."""
    Command().start()