|
|
@ -14,13 +14,30 @@ I think.
|
|
14
|
14
|
|
|
15
|
15
|
## qst - run things quickly (and easily)
|
|
16
|
16
|
|
|
17
|
|
intended to be run in unfamilar environments, might detect the project
|
|
18
|
|
type and everything later, for now you pass it a file and it will decide
|
|
19
|
|
what to do with it.
|
|
|
17
|
intended to be run in unfamilar environments, you pass it a file or a
|
|
|
18
|
directory and it tries to detect what it is and how to run it.
|
|
20
|
19
|
|
|
|
20
|
- run `qst` or `qst -h` to see options and support project types
|
|
21
|
21
|
- `qst hello_world.go`: compiles and runs `hello_world.go`, rerunning
|
|
22
|
22
|
after it exits or the file is saved
|
|
23
|
23
|
|
|
24
|
24
|
quite fun for small things, just throw some code in a file, have `qst`
|
|
25
|
25
|
watch and restart when appropriate.
|
|
26
|
|
- the future: just run `qst` and it will run the first thing it detects
|
|
|
26
|
- `qst -phase=test ...` runs the tests for projects that support it
|
|
|
27
|
|
|
|
28
|
### Building it yourself
|
|
|
29
|
|
|
|
30
|
# set up $GOPATH as desired
|
|
|
31
|
$ export GOPATH=$PWD/.go # choose whatever you want
|
|
|
32
|
$ go build qst
|
|
|
33
|
...
|
|
|
34
|
$ ./qst -h
|
|
|
35
|
Usage: qst <file>
|
|
|
36
|
...
|
|
|
37
|
$ ./qst examples/hello_web.rb
|
|
|
38
|
...
|
|
|
39
|
^C
|
|
|
40
|
$ ./qst examples/hello_web.go
|
|
|
41
|
...
|
|
|
42
|
|
|
|
43
|
Try changing something in the files, it's fun. :)
|