Commit graph

405 commits

Author SHA1 Message Date
jesopo
9ce21a30eb fix utils.datetime.format.to_pretty_time typehinting 2020-02-24 10:38:58 +00:00
jesopo
eb60e09a23 add isodate requirement for parsing iso8601 durations 2020-02-24 10:30:59 +00:00
jesopo
8f9c063114 only do to_pretty_time as relative when requested 2020-02-24 10:18:55 +00:00
jesopo
0667ac8c5f add option to encrypt channel_log log files line-by-line 2020-02-20 14:56:04 +00:00
jesopo
70db97f64e support @utils.export on functions, to export those functions 2020-02-19 17:22:37 +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
36e0db7ab5 weeks and days should be absolute (divmod of days) 2020-02-18 16:39:36 +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
df38d7a57f replace lxml usage with html5lib! the future is cool 2020-02-13 21:50:33 +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
4e9df2c552 handle git being in a detached head state when getting current commit 2020-02-08 13:21:29 +00:00
jesopo
822a44570c accept "1"/"0" as "true"/"false" for !config 2020-02-06 17:58:29 +00:00
jesopo
f52a824ffb fix SpecTypeArgumentDate simple() 2020-02-06 16:40:02 +00:00
jesopo
01441efe75 only pull 'charset' from <meta> content-type when it definitely exists 2020-02-06 11:54:04 +00:00
jesopo
460cda87bb add command spec type "words" - array of remaining words 2020-02-05 16:32:41 +00:00
jesopo
87bc9bab9e is8601_format_now() -> iso8601_now() 2020-02-05 10:15:57 +00:00
jesopo
7a15e5b2bf store timestamp and current git commit when loading a module 2020-02-03 23:00:53 +00:00
jesopo
7105ba01de also detect encoding for http.request_many() 2020-01-31 11:40:17 +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
1674ef325b add utils.datetime.seconds_since(); compare utcnow to datetime 2020-01-30 14:58:32 +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
a35ed3c6ea use dateutil.relativedelta for to_pretty_time, to cover years/months 2020-01-28 12:33:27 +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
jesopo
ced3bb23da "time" spec arg renamed to "duration" 2020-01-25 23:58:09 +00:00
jesopo
1a8a4ac9d4 support spec arg "context" (e.g. private only), marked exported as private 2020-01-25 23:57:27 +00:00
jesopo
0c28d63822 add utils.parse.argument_spec_human() for usage strings 2020-01-25 22:56:56 +00:00
jesopo
bd33ea5d8a implement default spec argument types 2020-01-25 22:56:06 +00:00
jesopo
478223f88c support type names of spec arguments 2020-01-25 21:17:35 +00:00
jesopo
341b314104 change command specs to be compiled at runtime by a decorator 2020-01-25 14:01:11 +00:00
jesopo
5722a567a1 fix format_token_replace for $$ 2020-01-25 11:32:01 +00:00
jesopo
47cb5eaab8 utils.parse.timed_args() min_args should be optional 2020-01-24 15:30:32 +00:00
jesopo
175e8c0a16 change utils.irc.strip_font() to remove tokens, no regex 2020-01-22 16:32:21 +00:00
jesopo
f79aa036f2 fix hostmask_match_many typehint 2020-01-22 15:04:48 +00:00
jesopo
ade5cbb1f3 add an optional mask pattern arg to !clear 2020-01-22 15:00:59 +00:00