about summary refs log tree commit diff
path: root/README.org
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-11-30T19·13-0500
committerGriffin Smith <root@gws.fyi>2019-11-30T19·13-0500
commit310ea90985adcb6d9efe2ab05c67a235c2fb0ea2 (patch)
tree441c154febce62e08dc76bd35fc8b5458ba0237f /README.org
parent92976cc9aad41c1f7b2c83dbbd22e0cf7e26b626 (diff)
Add build and run instructions to the README
just for the heck of it.
Diffstat (limited to 'README.org')
-rw-r--r--README.org32
1 files changed, 32 insertions, 0 deletions
diff --git a/README.org b/README.org
index 2f766ec1b66e..5d3b2af0485a 100644
--- a/README.org
+++ b/README.org
@@ -1 +1,33 @@
 #+TITLE: Xanthous
+
+* Building
+
+#+BEGIN_SRC shell
+$ nix build
+#+END_SRC
+
+* Running
+
+#+BEGIN_SRC shell
+$ ./result
+#+END_SRC
+
+** Keyboard commands
+
+Keyboard commands are currently undocumented, but can be found in [[[https://github.com/glittershark/xanthous/blob/master/src/Xanthous/Command.hs#L26][this file]].
+Movement uses the nethack-esque hjklybnu.
+
+* Development
+
+#+BEGIN_SRC shell
+$ nix-shell
+
+# Build (for dev)
+[nix-shell:xanthous]$ cabal new-build
+
+# Run tests
+[nix-shell:xanthous]$ cabal new-run test
+
+# Run a repl
+[nix-shell:xanthous]$ cabal new-repl
+#+END_SRC