DEVELOPMENT ENVIRONMENT

~liljamo/tixe

ref: 74704273fd1bc8626d272a67682748940e4ac164 tixe/dev.elv -rwxr-xr-x 294 bytes
74704273Jonni Liljamo docs: license 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/elvish

fn run {
    clear
    go run tixe.go
}

fn build {
    clear
    go build
}

var input
while (not-eq $input "q") {
    clear

    echo "[R]un, [B]uild, [Q]uit"

    set input = (read-line)

    if (eq $input "r") {
        run
    } elif (eq $input "b") {
        build
    }
}