You need to sign in or sign up before continuing.
Write shell completions to nicely available directory like man pages
Currently, sequoia's CLI utilities all have the ability to generate shell completions during compile time using their build.rs files. (sq, sqv, sop). They all require setting the CARGO_TARGET_DIR
variable to enable writing out the completion files, which changes where cargo will put other generated artifacts as well: https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-reads
I think it'd make sense to write out shell completions to a separate directory instead, something like completions-${command_name}
, similar to how man pages are put into man-sq
etc. This would make packaging sq
, sqv
and sqop
completely, including the completions, quite a bit easier.