Commit Graph

26 Commits

Author SHA1 Message Date
e49c930771 Make arguments simpler to deal with in action functions
<source> was an optional argument, and the second out of three passed,
meaning when only two arguments were given, the action functions would
have to know to use the second argument as <target>, instead of the the
third. Now the second argument is always <target>, and the <source>
argument is always the third, if given.
2014-03-08 13:32:24 +00:00
e0f0177301 Expand Dotfile syntax support to not require a <source> argument
Supported action syntax:

- `<action>: <source> -> <target>`
- `<action>: -> <target>`
- `<source> -> <target>`
- `-> <target>`
2014-03-08 13:29:07 +00:00
fad6369ba7 Make dotify-action error out when given invalid actions 2013-10-21 01:30:42 +01:00
65ccec0d8a Add Dotfile commands 2013-10-21 00:26:46 +01:00
f5725f6229 Remove dotfile option parsing commands
They are no longer needed, as I'm going for a "compile Dotfile to
regular shell script" approach now, rather than a "manually parse the
shit out of the Dotfile".
2013-10-20 23:59:08 +01:00
9150d996a7 Add tests for compile-dotfile internal command 2013-10-20 22:53:35 +01:00
4447397c10 Keep things more consistent 2013-10-20 22:53:22 +01:00
7dd4458031 Rename test/run.sh to test.sh 2013-10-20 22:51:08 +01:00
2c72a369e5 Update parse-dotfile-options test 2013-10-03 23:55:15 +01:00
7dc86a3843 Fix load paths in test files 2013-10-03 23:54:53 +01:00
7ca1911636 Keep things consistent 2013-10-03 23:42:46 +01:00
02ad286591 Break stub/restore test-helpers into their own stub.sh file 2013-10-03 23:42:45 +01:00
4b84e35b2f Reorganize helpers 2013-10-03 23:42:20 +01:00
7bec498a13 Fix test runner's exit status 2013-10-03 23:01:57 +01:00
4efde780d4 Reorganize internal functions 2013-10-03 22:59:38 +01:00
7594f1bc59 Update dotfile option parsing and complete tests 2013-07-05 00:57:53 +02:00
d8ef9d824d Slight test improvements 2013-07-05 00:56:55 +02:00
3a18df0a18 Add basic tests for parse-dotfile-options 2013-07-01 12:37:52 +02:00
d0f4f579c0 Update test files to use test-helper 2013-07-01 12:35:46 +02:00
0e2b07d39f Fix a bug in test-helper.sh 2013-07-01 12:35:20 +02:00
0c523bc5cf Update internals test file 2013-07-01 11:43:21 +02:00
cca82b0e31 Add test-helper 2013-07-01 11:42:58 +02:00
c233bc3dc8 Add tests for locate-* functions 2013-06-28 13:55:37 +02:00
f1d2dec645 Add tests for has-argument and parse-argument functions 2013-06-26 21:46:47 +02:00
ab7a7a10dd Add test for trim() function 2013-06-26 21:44:20 +02:00
5abbdd7853 Setup testing system using assert.sh 2013-06-26 21:43:42 +02:00