Now, the command for jj git remote add is cmd_git_remote_add and its argument type is GitRemoteAddArgs. This should make it easier to find the CLI docs and the implementation for commands.
This is how jj branch commands were already set up in this way. The jj op commands were also already set up in this way, except the functions are called e.g. cmd_op_undo, I kept this for simplicity.
I was mainly motivated by the jj file commands. Most other commands had functions already named in the above pattern, but used to have shorter argument type names.
Checklist
If applicable:
n/a I have updated CHANGELOG.md
n/a I have updated the documentation (README.md, docs/, demos/)
n/a I have updated the config schema (cli/src/config-schema.json)
Now, the command for
jj git remote add
iscmd_git_remote_add
and its argument type isGitRemoteAddArgs
. This should make it easier to find the CLI docs and the implementation for commands.This is how
jj branch
commands were already set up in this way. Thejj op
commands were also already set up in this way, except the functions are called e.g.cmd_op_undo
, I kept this for simplicity.I was mainly motivated by the
jj file
commands. Most other commands had functions already named in the above pattern, but used to have shorter argument type names.Checklist
If applicable:
CHANGELOG.md