def install(options, script): """ Installs the ~/.vellum dir and what it needs. """ scribe = Scribe(script) scribe.log("Installing .vellum directory to your home directory.") scribe.command("install", None)
def shell(options, script, user_input=raw_input): """ Runs a simple shell collecting input from the user. user_input is a function that gets called, defaults to raw_input, but during testing it is stubbed out. """ scribe = Scribe(script) script.show() while True: print ">>>", try: targets = user_input() except EOFError: break scribe.build(targets.split(" "))
def build(options, script, targets): """Builds the targets.""" scribe = Scribe(script) scribe.build(targets)