mirror of
https://github.com/kennethreitz/bruce-operator.git
synced 2026-06-05 23:20:18 +00:00
36 lines
577 B
Python
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()
|