Casey Rodarmor
4d20ffeac4
Use colors in output
...
This is a pretty gross commit, since it also includes a lot of
unrelated refactoring, especially of how error messages are printed.
Also adds a lint recipe that prints lines over 100 characters
To test, I added a `--color=[auto|always|never]` option that defaults to
auto in normal use, but can be forced to `always` for testing. In `auto`
mode it defers to `atty` to figure out if the current stream is a
terminal and uses color if so.
Color printing is controlled by the `alternate` formatting flag.
When printing an error message, using `{:#}` will print it with colors
and `{}` will print it normally.
2016-11-11 17:32:35 -08:00
Casey Rodarmor
3fb4fc8074
Bump version
2016-10-31 23:04:58 -07:00
Casey Rodarmor
763f73f0a8
Readme and notes
2016-10-31 22:06:28 -07:00
Casey Rodarmor
cef8b4fbdf
Updated readme
2016-10-31 21:53:31 -07:00
Casey Rodarmor
ca9a0b7bff
Update readme.
2016-10-31 21:27:10 -07:00
Casey Rodarmor
7f6a74af24
Rename arguments to parameters.
2016-10-31 19:11:27 -07:00
Casey Rodarmor
0127986bce
Update description
2016-10-30 22:55:03 -07:00
Casey Rodarmor
e354ca0a8e
Bump version update description
2016-10-30 22:52:03 -07:00
Casey Rodarmor
8de21fdc26
Add crates.io shield
2016-10-30 22:44:14 -07:00
Casey Rodarmor
ca29dd0494
Notes
2016-10-30 20:27:35 -07:00
Casey Rodarmor
7171ddbca2
Notes, make sure indent in recipes is ignored
2016-10-30 19:37:22 -07:00
Casey Rodarmor
8fd580dadd
Notes and readme
2016-10-30 19:15:43 -07:00
Casey Rodarmor
9e9b525369
Bump version to 0.2.11 and rename back to just
2016-10-30 18:12:59 -07:00
Casey Rodarmor
0b182002a4
Notes, bump version
2016-10-30 17:09:33 -07:00
Casey Rodarmor
dc925fe590
Moved last enhancements to github issues
2016-10-30 17:06:34 -07:00
Casey Rodarmor
1290c5a8bd
Added raw '' strings
2016-10-30 16:56:22 -07:00
Casey Rodarmor
843662c285
Notes + bump version
2016-10-30 16:40:45 -07:00
Casey Rodarmor
2568e949b5
Cleaned up export parsing
2016-10-30 16:34:39 -07:00
Casey Rodarmor
69f8e07a30
export variables done
2016-10-30 16:15:18 -07:00
Casey Rodarmor
93a3b3533b
Update notes
2016-10-30 14:36:48 -07:00
Casey Rodarmor
cc683cbb04
Bump version, add --debug
2016-10-30 13:14:39 -07:00
Casey Rodarmor
9a368fb351
variable=value overrides done
2016-10-30 03:08:28 -07:00
Casey Rodarmor
25c6432fa3
Backtick tests done!
2016-10-30 01:27:05 -07:00
Casey Rodarmor
21320d36ee
Update notes
2016-10-30 00:33:47 -07:00
Casey Rodarmor
980c5d0b33
Backticks implemented. Error messages still suck though.
2016-10-30 00:20:29 -07:00
Casey Rodarmor
8b149b66fc
Panic commit.
2016-10-29 23:39:12 -07:00
Casey Rodarmor
3d3c4394c2
Ready to actually implement backtick evaluation
2016-10-29 22:56:47 -07:00
Casey Rodarmor
70e9d4e653
Refactoring. Checkpoint commit.
2016-10-29 21:51:39 -07:00
Casey Rodarmor
810365f22b
Add assignment resolving
2016-10-29 20:39:21 -07:00
Casey Rodarmor
362158d1da
Update notes
2016-10-29 13:44:51 -07:00
Casey Rodarmor
41933385a3
Update notes
2016-10-29 11:50:54 -07:00
Casey Rodarmor
70d1df5b9c
Working on backticks. They are evaluated as strings for now.
2016-10-29 01:58:30 -07:00
Casey Rodarmor
b57b84e550
Arguments done!
2016-10-29 00:55:47 -07:00
Casey Rodarmor
ac5433248e
Arguments working but still ugly
2016-10-29 00:14:41 -07:00
Casey Rodarmor
0f29b4fc2a
Pretty errors with underlined tokens!
2016-10-28 20:34:25 -07:00
Casey Rodarmor
a55adafa60
Notes
2016-10-28 19:56:33 -07:00
Casey Rodarmor
383754d2fb
More tests
2016-10-28 19:38:32 -07:00
Casey Rodarmor
3c80f7f7ae
Add '--debug' flag to print justfile with evaluated expressions and
...
variables
2016-10-28 16:41:46 -07:00
Casey Rodarmor
01df3d5e4a
Add {:#} format printing to justfile for --show
2016-10-28 16:32:13 -07:00
Casey Rodarmor
a8a5c342e7
More integration tests
2016-10-28 15:59:50 -07:00
Casey Rodarmor
a1722fe241
Add integration tests
2016-10-28 15:25:59 -07:00
Casey Rodarmor
0a16803247
Clippy fixes, bump version 0.2.3, string escapes
2016-10-28 00:06:36 -07:00
Casey Rodarmor
fa2fae5fb8
Clean up code, rename Token.class -> Token.kind
2016-10-27 18:48:55 -07:00
Casey Rodarmor
dd824ef364
Test that evaluated recipe lines are correct
...
Saves the value in each expression fragment when that fragment is
evaluated so that we can print the value in Display. This allows
us to check fragment values in tests.
2016-10-27 18:01:07 -07:00
Casey Rodarmor
526f569b8e
Rewrite notes
2016-10-27 10:11:42 -07:00
Casey Rodarmor
4dd09a6e63
Add sloc recipe
2016-10-27 09:50:06 -07:00
Casey Rodarmor
4bb926abc4
line evaluation is done
2016-10-27 09:44:07 -07:00
Casey Rodarmor
ebd4186452
Added missing arguments error whenever we try to run an recipe with
...
arguments, since arguments are unsupported.
2016-10-27 00:31:50 -07:00
Casey Rodarmor
d5f81dc0b4
Parsing and tokenizing tests are now mostly passsing, not running
...
recipes though.
2016-10-27 00:13:10 -07:00
Casey Rodarmor
aae665a4e9
Tokenize looks like it's working.
2016-10-26 22:04:12 -07:00