aboutsummaryrefslogtreecommitdiffstats
path: root/README.org
diff options
context:
space:
mode:
authorAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-10-08 23:47:07 +0300
committerAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-10-08 23:47:07 +0300
commitfe781e5ae7116733e5b335a0ac016af97266db5f (patch)
treed5cf6ebfc27b84745df5d6e3db04b04d0b524706 /README.org
parentf67f2c3d5b67f54dae2c2c2754f43b4351445c80 (diff)
downloadck-fe781e5ae7116733e5b335a0ac016af97266db5f.tar.gz
ck-fe781e5ae7116733e5b335a0ac016af97266db5f.tar.bz2
ck-fe781e5ae7116733e5b335a0ac016af97266db5f.zip
Way better Edit
Diffstat (limited to 'README.org')
-rw-r--r--README.org34
1 files changed, 27 insertions, 7 deletions
diff --git a/README.org b/README.org
index 13c126e..446ff02 100644
--- a/README.org
+++ b/README.org
@@ -67,14 +67,15 @@ and are bash scripts that test =ck= functionality. Unit tests reside
under =unit/= directory and test the code.
*** run tests
-Simply go to the build dir and type.
+First make sure you build ck with the =-DCK_TESTS=1= option. Then
+go to the build directory and type:
#+BEGIN_SRC sh
-$ ./check_ck
+$ ./test-ck
#+END_SRC
*** test suite
#+BEGIN_SRC sh
-$ ./check_ck -h
+$ ./test-ck -h
ck test suite
use without flags to run all tests
@@ -259,11 +260,30 @@ a different pattern matching program you can do it like so:
*** edit
or e or -e
-==--WIP--==
+Edit configurations with =$EDITOR=.
-Currently edit can only edit the primary config of a program.
+Edit takes at least one and up to two arguments.
-To do it use:
+The first argument is the *programName*. If the program has a primary configuration
+edit will open this. If the program has only one configuration edit will open it.
+If the program has more than 1 configurations and no primary, it will print the
+avaliable configurations and exit.
+
+The second argument is the *configName*. If it exists it will open, else it will
+print the avaliable configurations and exit.
+
+Usage:
#+BEGIN_SRC sh
-$ ck edit program_name
+# suppose this is our ck instance
+$ ck list tree -a
+emacs:
+|- init.el
+|- accounts.el [s]
+|- orgconf.org [p]
+
+# edit the primary emacs config
+$ ck edit emacs
+
+# edit a specific emacs config, other than the primary
+$ ck edit emacs accounts.el
#+END_SRC