ejholmes / walk

A fast, general purpose, graph based build and task execution utility.
http://ejholmes.github.io/walk/
MIT License
137 stars 1 forks source link

Ability to escape slashes #20

Open ejholmes opened 7 years ago

ejholmes commented 7 years ago

Let's say you want a Walkfile that installs homebrew taps:

#!/bin/bash

phase=$1
target=$2

case $target in
  *.tap)
    case $phase in
      exec) brew tap ${target%.tap} ;;
    esac ;;
esac

Now, I want to do something like this:

walk caskroom/cask.tap

walk is going to look in a directory called caskroom and execute the cask.tap target. Maybe we should allow escaping slashes to indicate that it's not really a directory:

walk caskroom\/cask.tap