Support sandboxes for Elixir, Haskell, Clojure

The dream is to create an offline version of something like repl.it.
This commit is contained in:
William Carroll 2019-05-13 16:37:47 +01:00
parent 011d302b9e
commit 5cb0aebbd3
2 changed files with 8 additions and 11 deletions

View file

@ -104,15 +104,9 @@ dkcsh() {
}
dkish() {
# Runs a Docker container with `/usr/bin/env bash`.
# `dkish` stands for DocKer Image SHell.
# Note: This defers from `dksh`, which accepts a container instead of an
# image.
# Usage: dkrit <container_name> [command]
image=$1
cmd=${2-/bin/bash}
docker run -it "$image" "$cmd"
# Runs a Docker container interactively
# Usage: dkrit <container_name> <command> [...args]
docker run -it $@
}
# Emacs