Commit graph

485 commits

Author SHA1 Message Date
7969e38872 Remove trailing newlines from lines read from files.
The other forms of pipeable.input don't include trailing newlines,
so this makes read_files more consistent with the rest.
2020-12-07 20:23:14 -08:00
62b44be0d5 Print betterhelp to stderr, not stdout. 2020-12-07 20:09:36 -08:00
6873beb823 Rename output -> stdout, add stderr. 2020-12-07 20:08:39 -08:00
0a1a3a545e Add interactive.py to supercede getpermission with more prompts.
Will delete getpermission at a later date.
2020-12-06 15:48:57 -08:00
60b6278876 Add subproctools.py. 2020-12-06 15:48:57 -08:00
3e1a24a2a6 Move touch.py out of voussoirkit, into voussoir/cmd.
Within voussoirkit, the solution for touching a single file is
pathclass.Path.touch.
2020-12-06 15:48:57 -08:00
4b1e396d9f Add docstring to pipeable.input. 2020-12-06 15:48:57 -08:00
9340e172df Remove unused builtin_input. 2020-12-06 15:48:57 -08:00
86f2186dd6 Move not in_pipe->list(lines) so it is inherent to multiline input. 2020-12-06 15:48:57 -08:00
051b783964 Remove support for input(arg=None).
If the caller doesn't want to specify an arg, they should be using go().
2020-12-06 15:48:57 -08:00
a0c7bd0258 Add docstring to pipeable.go. 2020-12-06 15:48:56 -08:00
8fe13e0f83 Rewrite touch.py with argparse, pipeable. 2020-12-06 15:48:46 -08:00
8ff596a95e Add function is_glob. 2020-12-05 20:04:51 -08:00
bf2865077a Fix to_base for 0.
Further proof that nobody is using this code.
2020-12-05 20:00:27 -08:00
f8c0d46c5e Alphabetize these functions. 2020-12-05 15:07:04 -08:00
244691713d Add constant WINDOWS_BADCHARS for use in other programs. 2020-12-05 15:06:27 -08:00
ebe009f2a2 Add assert_not_file, assert_not_directory to round it out. 2020-12-05 14:55:02 -08:00
44d9bd9913 Add assert_is_link, assert_not_link. 2020-12-05 14:51:51 -08:00
946f329e8c Add helpful decorator ctrlc_return1. 2020-11-30 22:01:37 -08:00
10a447cd07 Add argument read_files so that arg may be a filepath. 2020-11-30 22:01:23 -08:00
1cf2209910 Add function excise. 2020-11-26 18:18:47 -08:00
2cb443cf6d Rename variable s -> text. 2020-11-26 18:18:26 -08:00
adc4247efd Add Backoff.current to get value without stepping forward. 2020-11-20 13:29:33 -08:00
5d83ed655d Add module docstring. 2020-11-18 03:18:01 -08:00
29541d2570 Add stringtools.py, gentools.py. 2020-11-18 03:17:54 -08:00
Ethan Dalool
2cbb93386e Improve binding of loud. 2020-11-09 16:31:19 -08:00
Ethan Dalool
cf4b670f43 Bump to version 0.0.58. 2020-11-09 11:05:45 -08:00
Ethan Dalool
03e5830133 Add some docstrings. 2020-11-09 11:04:40 -08:00
Ethan Dalool
63689e02c0 Fix result_generator hanging when the job generator produces nothing. 2020-11-09 11:03:08 -08:00
Ethan Dalool
cbf546ee69 Add level_by_argv level --silent. 2020-11-08 20:12:19 -08:00
Ethan Dalool
e3d9336383 Pull code out to separate function get_level_by_argv. 2020-11-08 20:12:05 -08:00
Ethan Dalool
1468f318f8 Handle sys.stdin, stdout are None under pythonw. 2020-11-05 22:00:36 -08:00
Ethan Dalool
98f42ad87b Bump to version 0.0.57. 2020-11-04 18:10:51 -08:00
Ethan Dalool
2ec77f287b Add vlogging.py. 2020-11-02 23:18:53 -08:00
Ethan Dalool
d29501bae7 Having removed self.spawn(other), add back Path(other). 2020-11-02 23:18:19 -08:00
Ethan Dalool
426da9b52b Let listdir spawn children with _correct_case already set. 2020-10-28 14:56:52 -07:00
Ethan Dalool
adf7353ae6 Cache _case_correct property to cut down on fs calls. 2020-10-28 14:55:49 -07:00
Ethan Dalool
1364d66264 Let kbps return all three values always.
Instead of just the missing value.
2020-10-23 07:47:10 -07:00
Ethan Dalool
3347962438 Fix normalization of paths during blacklist check. 2020-10-23 07:46:29 -07:00
Ethan Dalool
5232ca81fc Fix dotdict being subscripted instead of dot. 2020-10-23 07:46:06 -07:00
Ethan Dalool
e3cc64c19c Remove useless const from argparse arg. 2020-10-23 07:45:31 -07:00
Ethan Dalool
c0e9870b91 Rewrite threadpool with persistent threads that pick up jobs. 2020-10-12 16:34:26 -07:00
Ethan Dalool
4e9b43be8b Big threadpool update. 2020-10-09 13:10:24 -07:00
Ethan Dalool
12175c23a7 Add lazychain.py. 2020-10-09 13:09:51 -07:00
Ethan Dalool
3989353579 Bump to version 0.0.56. 2020-10-08 09:40:13 -07:00
Ethan Dalool
d56eea85e6 Fix punctuation of these statements. 2020-10-08 09:39:41 -07:00
Ethan Dalool
5147d7b988 Move nested function do_it out to _run. 2020-10-06 23:09:06 -07:00
Ethan Dalool
0202aeaca0 Add backoff.py. 2020-10-06 11:18:25 -07:00
Ethan Dalool
1a0b71673f Bump to version 0.0.55. 2020-09-30 19:34:28 -07:00
Ethan Dalool
d37dbe40f8 Add base exception class DownloadyException. 2020-09-25 16:09:42 -07:00