Commit graph

31 commits

Author SHA1 Message Date
jesopo
e645a32f93 handle /[/,`#]/ as sed delimeters 2021-02-20 18:41:40 +00:00
jesopo
7fdb9a1e55 fix regression of message filters not matching without formatting 2020-04-08 18:19:06 +01:00
jesopo
5df8df83ad fail an alias when an ${} var isn't found 2020-04-08 14:29:52 +01:00
jesopo
1c09f7c854 add a flag command spec type 2020-03-05 10:41:05 +00:00
jesopo
7ebad30c2f convert & in sed to \g<0> so python handles full-match replacements 2020-02-26 13:26:06 +00:00
jesopo
d1bd3f4920 deduplicate spec arg names 2020-02-25 09:43:14 +00:00
jesopo
175c0a285c open possibly-utf8 files with forced utf8 2020-02-24 15:24:39 +00:00
jesopo
ec54fc8ef0 a comment! 2020-02-19 15:02:12 +00:00
jesopo
6ef4c0ea3e fix format_token return typehints 2020-02-19 14:20:57 +00:00
jesopo
43fbbe7279 change format_tokens from $VAR to ${VAR} 2020-02-19 13:49:40 +00:00
jesopo
d5f0cb5f3d remove debug print 2020-02-16 00:06:22 +00:00
jesopo
4298403164 fix _set_modifier typing 2020-02-15 23:35:27 +00:00
jesopo
dfdde884b8 implement command spec modifiers, use for pattern, use pattern for dice.py 2020-02-15 23:31:55 +00:00
jesopo
c73570a953 use re.sub, not str.replace, otherwise things like "$" dont work 2020-02-14 23:57:23 +00:00
jesopo
275f896ed8 move SpecTypeErro to utils.parse.spec 2020-02-14 22:03:53 +00:00
jesopo
f827bdce7f split out command_spec module 2020-02-14 21:59:41 +00:00
jesopo
e5fdef6726 support & in utils.parse.sed, change sed.py to use utils.parse.sed 2020-02-09 16:32:15 +00:00
jesopo
29f0a282a8 add utils.parse.sed. 2020-02-09 10:49:18 +00:00
jesopo
f52a824ffb fix SpecTypeArgumentDate simple() 2020-02-06 16:40:02 +00:00
jesopo
460cda87bb add command spec type "words" - array of remaining words 2020-02-05 16:32:41 +00:00
jesopo
5d3e1ea492 add 'date' command spec type 2020-01-30 21:21:12 +00:00
jesopo
d0d5cc4d08 split utils.datetime out in to .parse and .format 2020-01-30 21:20:56 +00:00
jesopo
c1543ed899 SpecArgumentTypeString should return None when no args 2020-01-29 17:04:17 +00:00
jesopo
63d2c16954 change "non-consuming spec arg" character from "=" to "-" 2020-01-28 15:42:56 +00:00
jesopo
65b992e238 allow spec arguments to be "non-consuming" (doesn't show up in usage) 2020-01-27 12:13:28 +00:00
jesopo
d7cc7781bd add 'int' command arg spec type 2020-01-27 12:13:10 +00:00
jesopo
d438b6dbc9 add "additional word" (aword) command arument spec type 2020-01-27 11:57:23 +00:00
jesopo
23d3ba5e29 add tstring spec type, string with trimmed consecutive spaces 2020-01-26 11:24:57 +00:00
jesopo
41e1115999 fix typehinting issues 2020-01-26 02:09:48 +00:00
jesopo
e0686ef7b4 support command spec literals 2020-01-26 02:01:18 +00:00
jesopo
1d1e2d95a9 split utils/parse.py in to multiple files 2020-01-26 00:06:47 +00:00