jj/cli
Daniel Luz 4fd2c446dd
Some checks are pending
binaries / Build binary artifacts (push) Waiting to run
website / prerelease-docs-build-deploy (ubuntu-24.04) (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
complete: ignore shell quotes when parsing command line
When completion functions are called in bash and zsh, quoted arguments
are passed exactly as they are typed, including shell quotes, and
clap_complete currently does not attempt to normalize this behavior.

For example, if the user types:

    jj diff -f 'trunk()' <TAB>

std::env::args() will be equivalent to:

    ["jj", "diff", "-f", "'trunk()'", ""]

To accurately capture the revset, the quotes need to be stripped.

This workaround handles the most common cases that work consistently
across shells, rather than going for maximum accuracy.
2025-09-17 02:00:43 +00:00
..
examples cli, lib: convert revset expressions to use Arc over Rc 2025-09-05 16:09:44 +00:00
src complete: ignore shell quotes when parsing command line 2025-09-17 02:00:43 +00:00
testing cli: add jj bisect run command 2025-09-04 14:30:52 +00:00
tests templates: ensure unique prefixes in format_gerrit_change_id_trailer 2025-09-16 19:36:01 +00:00
build.rs build.rs: separate commit ids if compiling at a merge commit 2025-07-08 02:38:21 +00:00
Cargo.toml cli: add jj bisect run command 2025-09-04 14:30:52 +00:00
docs build: fix cargo publish by symlinking cli/docs->docs 2024-11-05 17:37:14 -08:00
LICENSE cargo: add LICENSE file to each crate we publish 2023-09-22 21:48:28 -07:00