Repository navigation
CLI: a --jobs option, and shell completion #2087
yavuzmeteafsar
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Two small additions to the filee command. I'd like to do both myself, as two separate PRs.
1.
--jobs <n>forconvertandwatchHow many files Filee converts at once is fixed in
JobQueue:Environment.ProcessorCountin most places, 4 in one. A script can't change it. A--jobsoption would let it:--jobs 1, get thefileevents and the text lines in the order the inputs were given.(#2076 shows how heavy a batch can get. That bug is about memory that isn't released, and
--jobswouldn't fix it. It would only give users a way to go easier on the machine.)Proposal:
--jobs <n>, n ≥ 1. Without it, nothing changes.convertandwatch. Jobs that make one output from many inputs (merging) aren't affected.cli.usagewith--json).filee help convert,filee help watchandSKILL.md, with tests inFilee.Cli.Tests.What I'd like your call on:
JobQueuefollow it, or only the per-file one?2.
filee completion zsh|bash|fishPrints a completion script to stdout, e.g.
filee completion zsh > ~/.zfunc/_filee. It would complete:--to(formats),--preset(presets), the engine names afterengines install|remove|download, and the fixed choices of--iso-filesystem,--sortand--merged-cells.Formats, presets and engines would be read by running
filee formats --json,filee presets --jsonandfilee engines --jsonwhile completing, so the script never goes stale when Filee gets new formats or the user adds a preset.filee help completionwould say how to install it in each shell.What I'd like your call on:
All reactions