Files
bruce-operator/bruce_operator/__main__.py
T
2018-09-30 06:15:46 -04:00

36 lines
577 B
Python

"""BRUCE Operator.
Usage:
bruce-operator watch [--buildpacks|--apps]
bruce-operator fetch-buildpacks
bruce-operator (-h | --help)
Options:
-h --help Show this screen.
"""
import sys
from docopt import docopt
from .core import watch
def main():
args = docopt(__doc__)
if args["watch"]:
if args["--buildpacks"]:
watch(buildpacks=True)
if args["--apps"]:
watch(apps=True)
watch(fork=True)
if args["fetch-buildpacks"]:
print("fetching")
exit()
if __name__ == "__main__":
main()