Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 331 Bytes
function task() {
data_dir=$HOME/.task/
run="docker run -it --rm -v $data_dir:/task_data "
call=$@
image="vpavlin/task"
if [ "$1" == "CMD" ]; then
shift
run="$run --entrypoint $1"
shift
call="$@"
fi
[ "$DEBUG" == "1" ] && echo $run $image $call
$run $image $call
}