Commit graph

72 commits

Author SHA1 Message Date
b52e79f99c
Update argument to yield_new_photos, yield_old_photos. 2022-08-21 14:02:39 -07:00
7ec1f7e4c8
Fix use of dotdot notation in cli help. 2022-08-14 13:20:05 -07:00
57f1b80442
Use SQL generated columns for area, aspectratio, basename, bitrate. 2022-08-13 18:08:45 -07:00
0e00a1e981
Use new worms version. 2022-07-20 19:03:25 -07:00
1bc59311c9
Let init print message if database already exists. 2022-03-26 13:21:59 -07:00
85055cdea2
Use new betterhelp. 2022-02-12 19:56:00 -08:00
67cda79b58
Rearrange the help text into categories. 2022-01-10 17:54:08 -08:00
24f9dc7d03
Separate delete_albums from delete_photos. 2022-01-10 17:53:29 -08:00
fcc6073d52
Improve the args.any postprocessor results and the way we glob. 2022-01-10 17:53:00 -08:00
a0ed8fcaa0
Use a global photodb so we can call two functions more safely.
Opening two separate connections by accident is no good.
2022-01-10 17:51:53 -08:00
d8cc841f5c
Remove unnecessary .absolute_path thanks to fspath. 2021-12-07 12:45:08 -08:00
3eb83a6289
Remove '''.strip, now unnecessary thanks to betterhelp updates.
betterhelp.print_helptext normalizes the whitespace before printing.
2021-11-10 23:45:23 -08:00
837820125b
Update ecli helptext. 2021-11-07 19:35:08 -08:00
a686cade94
Correct helptexts to say "--search searchargs". 2021-11-01 23:31:50 -07:00
d5e51aa2ea
Return 0 from ecli functions. 2021-10-15 20:58:10 -07:00
49fa9263b6
Add commit prompt for tag_breplace_argparse. 2021-10-02 23:39:43 -07:00
72be07bdb7
Small aesthetic tweaks. 2021-09-30 22:03:15 -07:00
2c321e8faa
Remove function find_photodb. This small caching is not important. 2021-09-30 22:03:15 -07:00
93da1f32c7
Improve some helptext examples. 2021-09-12 21:20:18 -07:00
068775cedd
Switch to vlogging.main_decorator. 2021-09-12 21:19:53 -07:00
e9d5711f29
Some linting. 2021-08-20 22:54:12 -07:00
a823036f9d
Add command generate_thumbnail. 2021-06-03 19:18:13 -07:00
ed8241f2ef
Don't commit for every file. 2021-06-03 19:12:15 -07:00
801226522b
Fix docstring referring to ids without --photos, --albums. 2021-06-03 19:08:55 -07:00
f6cb496db4
Check need_commit on purge_deleted_files. 2021-06-03 19:08:31 -07:00
9f84435ad9
Add flag --delete-file. 2021-05-30 19:15:03 -07:00
b6e21e2e65
Add missing strip() on tag_list docstring. 2021-05-18 23:44:18 -07:00
635db7e04f
Ensure that each searchargs-capable command mentions search --help. 2021-05-18 23:43:18 -07:00
5d736f49ce
Clarify that these flags require a following argument. 2021-05-18 23:38:04 -07:00
2d2e80824f
Migrate scripts from spinal.walk_generator to spinal.walk. 2021-05-17 17:01:11 -07:00
26d5ff5730
Update closest_photodb to take starting path argument. 2021-05-16 21:08:51 -07:00
1a944f574e
Add command tag-list. 2021-05-15 18:20:59 -07:00
4bf5b6d824
Replace dev_ino with mtime, sha256.
This change was prompted by my discovery that under DrivePool, two
files can have the same dev, ino pair. It's understandable but the fact
of the matter is I don't want to rely on inodes any more.
Hashing has the downside of speed, but considering the time investment
of tagging files in the first place I think it should be worthwhile.
2021-02-03 12:12:47 -08:00
6048f0915d
Add relocate's summary to the main help text. 2021-01-28 17:06:14 -08:00
0d918efe4c
Fix symlink pruning not checking for directory links. 2021-01-28 17:05:20 -08:00
1511852e94
Use get_photos_from_args in export to reduce dupe code. 2021-01-28 17:04:38 -08:00
60ac8116aa
Add delete command. 2021-01-28 17:03:19 -08:00
c4ea7c31ac
Add my usual format handler to logger under etq_cli. 2021-01-28 16:54:35 -08:00
bf601d7ab1
Pass LOG_LEVEL to closest_photodb. 2021-01-24 21:38:59 -08:00
16f2517ca9 Add some example invocations to the helptext. 2021-01-15 00:34:15 -08:00
c3ec4f06a3 Improve "Try etiquette_cli init" message. 2021-01-15 00:02:24 -08:00
e5be26f8b0 Add PhotoDB.closest_photodb for frontend instantiation. 2021-01-09 15:42:16 -08:00
d1148d85db A few linting fixes. 2021-01-05 17:35:10 -08:00
79c6af5d9b Add relocate command. 2021-01-03 02:58:18 -08:00
9d048a5d88 Improve export_symlinks. 2021-01-01 17:02:03 -08:00
94130e4803 Add betterhelp docstring. 2021-01-01 17:02:00 -08:00
84b35c3eaa Only purge deleted files, empty albums within the cwd. 2021-01-01 17:02:00 -08:00
968d84b3cb Add export_symlinks command. 2021-01-01 17:02:00 -08:00
6522bda09c Add basename in separate column so we can orderby it.
For a while I've wanted to be able to sort search results by the file's
basename. This is especially important for the cli. SQLite doesn't have
an easy way to split the filepath column by the slash, so the only
choice is to store basename as a separate column. I put it off for a
while but I think it's the right move. However we must not forget to
update it every time we update filepath, which is a bummer.
2021-01-01 17:02:00 -08:00
017633331b Fix yield photo should only happen when not exception. 2020-12-30 15:50:29 -08:00