repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: removed unused plugins neovim: stole snacks.rename plugin from folke

3ed4742d8f49179dda52184394ba2c8dcafee34b

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (14)

neovim/init.lua

Modified
53 53 require 'bugabinga.neovim_devel'
54 54 require 'bugabinga.file_explorer'
55 55 require 'bugabinga.virtual_column'
56 -require 'bugabinga.align'
57 56 require 'bugabinga.autotag'
58 57 require 'bugabinga.colorizer'
59 -require 'bugabinga.cursorword'
60 58 require 'bugabinga.devicons'
61 59 require 'bugabinga.diff'
62 60 require 'bugabinga.format'
74 72 require 'bugabinga.textobjects'
75 73 require 'bugabinga.key_preview'
76 74 require 'bugabinga.patterns'
77 -require 'bugabinga.pairs'
78 75 require 'bugabinga.terminal'
79 76 require 'bugabinga.fuzzy_find'

neovim/lua/bugabinga/align.lua

Deleted
deleted file mode 100644
1 -local puk = require 'std.puk'
3 -puk.defer 'mini.align' (function(align)
4 - align.setup {}
5 -end)

neovim/lua/bugabinga/cursorword.lua

Deleted
deleted file mode 100644
1 -local puk = require 'std.puk'
2 -local table = require 'std.table'
3 -local auto = require 'std.auto'
5 -puk.defer 'mini.cursorword' (function (cursorword)
6 - cursorword.setup {
7 - delay = 4242,
8 - }
9 - vim.api.nvim_set_hl( 0, 'MiniCursorwordCurrent', { reverse = true } )
10 - local cursorword_blocklist = function ()
11 - local curword = vim.fn.expand '<cword>'
12 - local filetype = vim.bo.filetype
14 - -- Add any disabling global or filetype-specific logic here
15 - local blocklist = {
16 - 'if',
17 - 'else',
18 - 'switch',
19 - 'case',
20 - 'return',
21 - 'true', 'false',
22 - }
23 - if filetype == 'lua' then
24 - table.join( blocklist, {
25 - 'local',
26 - 'require',
27 - 'prequire',
28 - 'then',
29 - 'end',
30 - 'not',
31 - 'elseif',
32 - } )
33 - elseif filetype == 'java' then
34 - table.join( blocklist, {
35 - 'import',
36 - 'class',
37 - 'final',
38 - 'interface',
39 - 'record',
40 - 'abstract',
41 - 'static',
42 - 'public',
43 - 'private',
44 - } )
45 - end
47 - if #curword >= 2 then
48 - table.insert(blocklist, curword)
49 - end
51 - vim.b.minicursorword_disable = vim.tbl_contains( blocklist, curword )
52 - end
54 - -- Make sure to add this autocommand *before* calling module's `setup()`.
55 - auto 'mini_cursorword_blocklist_update' {
56 - description = 'Disable Cursorword for certain words.',
57 - events = 'CursorMoved',
58 - pattern = '*',
59 - command = cursorword_blocklist,
60 - }
61 -end)

neovim/lua/bugabinga/diff.lua

Modified
1 1 local puk = require 'std.puk'
2 +local map = require 'std.map'
2 4 puk.defer 'mini.diff' (function(diff)
3 5 diff.setup {}
6 + map.normal {
7 + description = 'toggle diff overlay',
8 + category = 'diff',
9 + keys = '<leader>to',
10 + command = diff.toggle_overlay,
11 + }
4 12 end)

neovim/lua/bugabinga/file_explorer.lua

Modified
1 1 local puk = require 'std.puk'
2 2 local map = require 'std.map'
3 +local auto = require 'std.auto'
4 +local rename = require 'std.rename'
4 6 local oil = puk 'oil'
71 73 keys = '-',
72 74 command = oil.open,
77 +auto 'notify_lsp_on_rename' {
78 + description = '',
79 + events = 'User',
80 + pattern = 'OilActionsPost',
81 + command = function(event)
82 + for _, action in ipairs(event.data.actions) do
83 + if action.type == "move" then
84 + vim.notify 'gogo powerranger'
85 + rename.on_rename_file(action.src_url, action.dest_url)
86 + end
87 + end
88 + end,

neovim/lua/bugabinga/fuzzy_find.lua

Modified
83 83 keys = '<leader>fk',
84 84 category = 'fuzzy'
87 86 end)

neovim/lua/bugabinga/lint.lua

Modified
1 1 local puk = require 'std.puk'
2 2 local auto = require 'std.auto'
4 -puk.defer 'lint' (function (lint)
4 +puk.defer 'lint' (function(lint)
5 5 local linters_by_ft = {
6 6 lua = { 'selene' },
7 7 sh = { 'shellcheck', 'dotenv_linter' },
9 9 editorconfig = { 'editorconfig-checker' },
10 10 yaml = { 'yq' },
12 - for k, v in pairs( linters_by_ft ) do
12 + for k, v in pairs(linters_by_ft) do
13 13 lint.linters[k] = v
16 16 local timer = vim.uv.new_timer()
17 17 local DEBOUNCE_MS = 500
18 - local try_lint = function ()
18 + local try_lint = function()
19 19 local bufnr = vim.api.nvim_get_current_buf()
20 - timer:stop()
21 - timer:start( DEBOUNCE_MS, 0,
22 - vim.schedule_wrap( function ()
23 - if vim.api.nvim_buf_is_valid( bufnr ) then
24 - vim.api.nvim_buf_call( bufnr, function () lint.try_lint( nil, { ignore_errors = true } ) end )
25 - end
26 - end ))
20 + if timer then
21 + timer:stop()
22 + timer:start(DEBOUNCE_MS, 0,
23 + vim.schedule_wrap(function()
24 + if vim.api.nvim_buf_is_valid(bufnr) then
25 + vim.api.nvim_buf_call(bufnr, function() lint.try_lint(nil, { ignore_errors = true }) end)
26 + end
27 + end))
28 + end
29 31 auto 'Lint' {
30 - description = '',
32 + description = 'Attempt linting current file',
31 33 events = 'BufWritePost',
32 34 command = try_lint,

neovim/lua/bugabinga/notifications.lua

Modified
1 1 local puk = require 'std.puk'
2 2 local user_command = require 'std.user_command'
3 -local fidget = puk 'fidget'
3 +local notify = puk 'mini.notify'
5 -fidget.setup {
6 - -- Options related to LSP progress subsystem
7 - progress = {
8 - suppress_on_insert = true, -- Suppress new messages while in insert mode
9 - },
11 - -- Options related to notification subsystem
12 - notification = {
13 - override_vim_notify = true, -- Automatically override vim.notify() with Fidget
14 - },
5 +notify.setup {}
6 +vim.notify = notify.make_notify {
7 + ERROR = { duration = 4242 },
8 + WARN = { duration = 3333 },
9 + INFO = { duration = 2222 },
17 -user_command.Notifications 'Show past notifications' (function() vim.cmd.Fidget 'history' end)
12 +user_command.Notifications 'Show past notifications' (
13 + function() notify.show_history() end

neovim/lua/bugabinga/pairs.lua

Deleted
deleted file mode 100644
1 -local puk = require 'std.puk'
3 -puk.defer 'mini.pairs' ( function ( pairs )
4 - pairs.setup {
5 - mappings = {
6 - ['('] = { action = 'open', pair = '()', neigh_pattern = '.\n' },
7 - ['['] = { action = 'open', pair = '[]', neigh_pattern = '.\n' },
8 - ['{'] = { action = 'open', pair = '{}', neigh_pattern = '.\n' },
9 - ['<'] = { action = 'open', pair = '<>', neigh_pattern = '.\n' },
11 - [')'] = { action = 'close', pair = '()', neigh_pattern = '[^\\].' },
12 - [']'] = { action = 'close', pair = '[]', neigh_pattern = '[^\\].' },
13 - ['}'] = { action = 'close', pair = '{}', neigh_pattern = '[^\\].' },
14 - ['>'] = { action = 'close', pair = '<>', neigh_pattern = '[^\\].' },
16 - ['"'] = false,
17 - ["'"] = false,
18 - ['`'] = false,
19 - },
20 - }
21 -end )

neovim/lua/std/ignored.lua

Modified
5 5 '^git.*',
6 6 'bigfile',
7 7 'blink-cmp-menu',
8 + 'mininotify',
9 + 'mininotify-history',
8 10 'checkhealth',
9 11 'fidget',
10 12 'grug-far',
30 32 'nofile',
33 -local as_kv = function ( list )
35 +local as_kv = function(list)
34 36 local tbl = {}
35 - for _, value in ipairs( list ) do
37 + for _, value in ipairs(list) do
36 38 vim.validate { value = { value, 'string' } }
37 39 tbl[value] = true
39 41 return tbl
42 -local filetypes_kv = as_kv( filetypes )
43 -local buftypes_kv = as_kv( buftypes )
44 +local filetypes_kv = as_kv(filetypes)
45 +local buftypes_kv = as_kv(buftypes)
45 47 return {
46 48 filetypes = filetypes,

neovim/lua/std/rename.lua

Added
new file mode 100644
1 +-- stolen from https://github.com/folke/snacks.nvim/blob/main/lua/snacks/rename.lua
3 +--- Lets LSP clients know that a file has been renamed
4 +---@param from string
5 +---@param to string
6 +---@param rename? fun()
7 +local function on_rename_file(from, to, rename)
8 + local changes = {
9 + files = { {
10 + oldUri = vim.uri_from_fname(from),
11 + newUri = vim.uri_from_fname(to),
12 + } }
13 + }
15 + local clients = vim.lsp.get_clients()
16 + for _, client in ipairs(clients) do
17 + if client.supports_method("workspace/willRenameFiles") then
18 + local resp = client.request_sync("workspace/willRenameFiles", changes, 1000, 0)
19 + if resp and resp.result ~= nil then
20 + vim.lsp.util.apply_workspace_edit(resp.result, client.offset_encoding)
21 + end
22 + end
23 + end
25 + if rename then
26 + rename()
27 + end
29 + for _, client in ipairs(clients) do
30 + if client.supports_method("workspace/didRenameFiles") then
31 + client.notify("workspace/didRenameFiles", changes)
32 + end
33 + end
34 +end
36 +--- Rename a file and update buffers
37 +---@param from string
38 +---@param to string
39 +---@return boolean ok
40 +local function _rename(from, to)
41 + from = vim.fn.fnamemodify(from, ":p")
42 + to = vim.fn.fnamemodify(to, ":p")
43 + -- rename the file
44 + local ret = vim.fn.rename(from, to)
45 + if ret ~= 0 then
46 + vim.notify("Failed to rename file: `" .. from .. "`", vim.log.levels.ERROR)
47 + return false
48 + end
50 + -- replace buffer in all windows
51 + local from_buf = vim.fn.bufnr(from)
52 + if from_buf >= 0 then
53 + local to_buf = vim.fn.bufadd(to)
54 + vim.bo[to_buf].buflisted = true
55 + for _, win in ipairs(vim.fn.win_findbuf(from_buf)) do
56 + vim.api.nvim_win_call(win, function()
57 + vim.cmd("buffer " .. to_buf)
58 + end)
59 + end
60 + vim.api.nvim_buf_delete(from_buf, { force = true })
61 + end
62 + return true
63 +end
65 +-- Renames the provided file, or the current buffer's file.
66 +-- Prompt for the new filename if `to` is not provided.
67 +-- do the rename, and trigger LSP handlers
68 +---@param opts? {from?: string, to?:string, file?:string, on_rename?: fun(to:string, from:string, ok:boolean)}
69 +local function rename_file(opts)
70 + opts = opts or {}
71 + local from = vim.fn.fnamemodify(opts.from or opts.file or vim.api.nvim_buf_get_name(0), ":p")
72 + local to = opts.to and vim.fn.fnamemodify(opts.to, ":p") or nil
74 + local function rename()
75 + assert(to, "to is required")
76 + on_rename_file(from, to, function()
77 + local ok = _rename(from, to)
78 + if opts.on_rename then
79 + opts.on_rename(to, from, ok)
80 + end
81 + end)
82 + end
84 + if to then
85 + return rename()
86 + end
88 + local root = vim.fn.getcwd()
90 + if from:find(root, 1, true) ~= 1 then
91 + root = vim.fn.fnamemodify(from, ":p:h")
92 + end
94 + local extra = from:sub(#root + 2)
96 + vim.ui.input({
97 + prompt = "New File Name: ",
98 + default = extra,
99 + completion = "file",
100 + }, function(value)
101 + if not value or value == "" or value == extra then
102 + return
103 + end
104 + to = vim.fs.normalize(root .. "/" .. value)
105 + rename()
106 + end)
107 +end
109 +return {
110 + rename_file = rename_file,
111 + on_rename_file = on_rename_file,

neovim/puk.plugins.nuon

Modified
12 12 github,
13 13 neovim/nvim-lspconfig,
14 14 master,
15 - "61e5109c8cf24807e4ae29813a3a82b31821dd45",
15 + "39dc331899521bbb4e102b614b71ab37464f8326",
20 20 github,
21 21 nvim-treesitter/nvim-treesitter,
22 22 main,
23 - "e8bfe271b0da136048cdf20128b758ec87318479",
23 + "b19b5ce17195f830fd2474c625e242cfc3aa5f90",
25 25 nvim,
26 26 --headless,
28 28 NONE,
29 - "+\"packadd nvim-treesitter\"",
30 - "+\":TSUpdate",
29 + "+packadd nvim-treesitter",
30 + "+:TSUpdate",
68 68 github,
69 69 "stevearc/conform.nvim",
70 70 master,
71 - "374aaf384e2e841607b8e2fe63fa3ad01d111c91",
72 - null
73 - ],
74 - [
75 - fidget,
76 - github,
77 - "j-hui/fidget.nvim",
78 - main,
79 - "d9ba6b7bfe29b3119a610892af67602641da778e",
71 + "a4bb5d6c4ae6f32ab13114e62e70669fa67745b9",
95 87 "857c5ac632080dba10aae49dba902ce3abf91b35",
90 + [
91 + "mini.notify",
92 + github,
93 + "echasnovski/mini.notify",
94 + main,
95 + "3a06b21dd0b335b95d125eae813276113b5e9ce7",
96 + null
97 + ],
99 99 "mini.splitjoin",
100 100 github,
116 116 github,
117 117 "echasnovski/mini.extra",
119 - "dc571df8f1f61debd59e200adfe7f701c0d67eca",
119 + "87be97ac00a8827e8380156cfef7222afb38f8bd",
127 127 "e5083df391171dc9d8172645606f8496d9443374",
130 - [
131 - "mini.pairs",
132 - github,
133 - "echasnovski/mini.pairs",
134 - main,
135 - "69864a2efb36c030877421634487fd90db1e4298",
136 - null
137 - ],
139 131 "mini.clue",
140 132 github,
141 133 "echasnovski/mini.clue",
143 - "65ce496cfe542b597f25190331288434c25f0747",
135 + "8b8598afa285f2a25cfd15a67e7eaa210ad405c3",
151 143 "079b8375e40ebf3f8af319ad835263ff390c3965",
154 - [
155 - "mini.align",
156 - github,
157 - "echasnovski/mini.align",
158 - main,
159 - "2b42ac0be7d570c2208f9e334ecef13453cd222d",
160 - null
161 - ],
162 - [
163 - "mini.cursorword",
164 - github,
165 - "echasnovski/mini.cursorword",
166 - main,
167 - "ab63cc74975f4e107dbb490f6d3040eacfc1c023",
168 - null
169 - ],
171 147 "mini.diff",
172 148 github,
236 212 github,
237 213 mfussenegger/nvim-lint,
238 214 master,
239 - "9dfb77ef6c5092a19502883c02dc5a02ec648729",
215 + "fdb04e9285edefbe25a02a31a35e8fbb10fe054d",
276 252 github,
277 253 chrisgrieser/nvim-rulebook,
279 - "64b87973b9c36588bd07aa26bc9f1a7726681593",
255 + "4c0e8b16976393f6d3c6bcfad85897eb3e0dd661",
324 300 github,
325 301 "MagicDuck/grug-far.nvim",
327 - "78c8d27c6f3300bfa92bb535236732d8e9bcb614",
303 + "7df08fff7da6ee08006fe8eaccc3407b89da368b",

nushell/completions/jj-completions.nu

Modified
1 1 module completions {
3 - def "nu-complete jj color" [] {
4 - [ "always" "never" "debug" "auto" ]
5 - }
7 3 # Jujutsu (An experimental VCS)
8 4 export extern jj [
9 5 --repository(-R): path # Path to repository to operate on
12 8 --at-operation: string # Operation to load the repo at
13 9 --at-op: string # Operation to load the repo at
14 10 --debug # Enable debug logging
15 - --color: string@"nu-complete jj color" # When to colorize output
11 + --color: string # When to colorize output (always, never, debug, auto)
16 12 --quiet # Silence non-primary command output
17 13 --no-pager # Disable the pager
18 14 --config: string # Additional configuration options (can be repeated)
22 18 --version(-V) # Print version
25 - def "nu-complete jj abandon color" [] {
26 - [ "always" "never" "debug" "auto" ]
27 - }
29 21 # Abandon a revision
30 22 export extern "jj abandon" [
31 23 ...revisions_pos: string # The revision(s) to abandon (default: @)
32 24 -r: string
33 - --summary(-s)
34 - --retain-bookmarks # Do not delete bookmarks pointing to the revisions to abandon
25 + --summary(-s) # Do not print every abandoned commit on a separate line
35 26 --restore-descendants # Do not modify the content of the children of the abandoned commits
36 27 --repository(-R): path # Path to repository to operate on
37 28 --ignore-working-copy # Don't snapshot the working copy, and don't update it
39 30 --at-operation: string # Operation to load the repo at
40 31 --at-op: string # Operation to load the repo at
41 32 --debug # Enable debug logging
42 - --color: string@"nu-complete jj abandon color" # When to colorize output
33 + --color: string # When to colorize output (always, never, debug, auto)
43 34 --quiet # Silence non-primary command output
44 35 --no-pager # Disable the pager
45 36 --config: string # Additional configuration options (can be repeated)
48 39 --help(-h) # Print help (see more with '--help')
51 - def "nu-complete jj absorb color" [] {
52 - [ "always" "never" "debug" "auto" ]
53 - }
55 42 # Move changes from a revision into the stack of mutable revisions
56 43 export extern "jj absorb" [
57 44 --from(-f): string # Source revision to absorb from
64 51 --at-operation: string # Operation to load the repo at
65 52 --at-op: string # Operation to load the repo at
66 53 --debug # Enable debug logging
67 - --color: string@"nu-complete jj absorb color" # When to colorize output
54 + --color: string # When to colorize output (always, never, debug, auto)
68 55 --quiet # Silence non-primary command output
69 56 --no-pager # Disable the pager
70 57 --config: string # Additional configuration options (can be repeated)
73 60 --help(-h) # Print help (see more with '--help')
76 - def "nu-complete jj backout color" [] {
77 - [ "always" "never" "debug" "auto" ]
78 - }
80 - # Apply the reverse of given revisions on top of another revision
63 + # Apply the reverse of a revision on top of another revision
81 64 export extern "jj backout" [
82 65 --revisions(-r): string # The revision(s) to apply the reverse of
83 66 --destination(-d): string # The revision to apply the reverse changes on top of
87 70 --at-operation: string # Operation to load the repo at
88 71 --at-op: string # Operation to load the repo at
89 72 --debug # Enable debug logging
90 - --color: string@"nu-complete jj backout color" # When to colorize output
73 + --color: string # When to colorize output (always, never, debug, auto)
91 74 --quiet # Silence non-primary command output
92 75 --no-pager # Disable the pager
93 76 --config: string # Additional configuration options (can be repeated)
96 79 --help(-h) # Print help (see more with '--help')
99 - def "nu-complete jj bookmark color" [] {
100 - [ "always" "never" "debug" "auto" ]
103 82 # Manage bookmarks [default alias: b]
104 83 export extern "jj bookmark" [
105 84 --repository(-R): path # Path to repository to operate on
108 87 --at-operation: string # Operation to load the repo at
109 88 --at-op: string # Operation to load the repo at
110 89 --debug # Enable debug logging
111 - --color: string@"nu-complete jj bookmark color" # When to colorize output
90 + --color: string # When to colorize output (always, never, debug, auto)
112 91 --quiet # Silence non-primary command output
113 92 --no-pager # Disable the pager
114 93 --config: string # Additional configuration options (can be repeated)
117 96 --help(-h) # Print help (see more with '--help')
120 - def "nu-complete jj bookmark create color" [] {
121 - [ "always" "never" "debug" "auto" ]
124 99 # Create a new bookmark
125 100 export extern "jj bookmark create" [
126 101 --revision(-r): string # The bookmark's target revision
132 107 --at-operation: string # Operation to load the repo at
133 108 --at-op: string # Operation to load the repo at
134 109 --debug # Enable debug logging
135 - --color: string@"nu-complete jj bookmark create color" # When to colorize output
110 + --color: string # When to colorize output (always, never, debug, auto)
136 111 --quiet # Silence non-primary command output
137 112 --no-pager # Disable the pager
138 113 --config: string # Additional configuration options (can be repeated)
141 116 --help(-h) # Print help (see more with '--help')
144 - def "nu-complete jj bookmark delete color" [] {
145 - [ "always" "never" "debug" "auto" ]
148 119 # Delete an existing bookmark and propagate the deletion to remotes on the next push
149 120 export extern "jj bookmark delete" [
150 121 ...names: string # The bookmarks to delete
154 125 --at-operation: string # Operation to load the repo at
155 126 --at-op: string # Operation to load the repo at
156 127 --debug # Enable debug logging
157 - --color: string@"nu-complete jj bookmark delete color" # When to colorize output
128 + --color: string # When to colorize output (always, never, debug, auto)
158 129 --quiet # Silence non-primary command output
159 130 --no-pager # Disable the pager
160 131 --config: string # Additional configuration options (can be repeated)
163 134 --help(-h) # Print help (see more with '--help')
166 - def "nu-complete jj bookmark forget color" [] {
167 - [ "always" "never" "debug" "auto" ]
170 - # Forget a bookmark without marking it as a deletion to be pushed
137 + # Forget everything about a bookmark, including its local and remote targets
171 138 export extern "jj bookmark forget" [
172 - --include-remotes # When forgetting a local bookmark, also forget any corresponding remote bookmarks
173 139 ...names: string # The bookmarks to forget
174 140 --repository(-R): path # Path to repository to operate on
175 141 --ignore-working-copy # Don't snapshot the working copy, and don't update it
177 143 --at-operation: string # Operation to load the repo at
178 144 --at-op: string # Operation to load the repo at
179 145 --debug # Enable debug logging
180 - --color: string@"nu-complete jj bookmark forget color" # When to colorize output
146 + --color: string # When to colorize output (always, never, debug, auto)
181 147 --quiet # Silence non-primary command output
182 148 --no-pager # Disable the pager
183 149 --config: string # Additional configuration options (can be repeated)
186 152 --help(-h) # Print help (see more with '--help')
189 - def "nu-complete jj bookmark list sort" [] {
190 - [ "name" "name-" "author-name" "author-name-" "author-email" "author-email-" "author-date" "author-date-" "committer-name" "committer-name-" "committer-email" "committer-email-" "committer-date" "committer-date-" ]
193 - def "nu-complete jj bookmark list color" [] {
194 - [ "always" "never" "debug" "auto" ]
197 155 # List bookmarks and their targets
198 156 export extern "jj bookmark list" [
199 157 --all-remotes(-a) # Show all tracking and non-tracking remote bookmarks including the ones whose targets are synchronized with the local bookmarks
203 161 ...names: string # Show bookmarks whose local name matches
204 162 --revisions(-r): string # Show bookmarks whose local targets are in the given revisions
205 163 --template(-T): string # Render each bookmark using the given template
206 - --sort: string@"nu-complete jj bookmark list sort" # Sort bookmarks based on the given key (or multiple keys)
207 164 --repository(-R): path # Path to repository to operate on
208 165 --ignore-working-copy # Don't snapshot the working copy, and don't update it
209 166 --ignore-immutable # Allow rewriting immutable commits
210 167 --at-operation: string # Operation to load the repo at
211 168 --at-op: string # Operation to load the repo at
212 169 --debug # Enable debug logging
213 - --color: string@"nu-complete jj bookmark list color" # When to colorize output
170 + --color: string # When to colorize output (always, never, debug, auto)
214 171 --quiet # Silence non-primary command output
215 172 --no-pager # Disable the pager
216 173 --config: string # Additional configuration options (can be repeated)
219 176 --help(-h) # Print help (see more with '--help')
222 - def "nu-complete jj bookmark move color" [] {
223 - [ "always" "never" "debug" "auto" ]
226 179 # Move existing bookmarks to target revision
227 180 export extern "jj bookmark move" [
228 - --from(-f): string # Move bookmarks from the given revisions
229 - --to(-t): string # Move bookmarks to this revision
181 + --from: string # Move bookmarks from the given revisions
182 + --to: string # Move bookmarks to this revision
230 183 --allow-backwards(-B) # Allow moving bookmarks backwards or sideways
231 184 ...names: string # Move bookmarks matching the given name patterns
232 185 --repository(-R): path # Path to repository to operate on
235 188 --at-operation: string # Operation to load the repo at
236 189 --at-op: string # Operation to load the repo at
237 190 --debug # Enable debug logging
238 - --color: string@"nu-complete jj bookmark move color" # When to colorize output
191 + --color: string # When to colorize output (always, never, debug, auto)
239 192 --quiet # Silence non-primary command output
240 193 --no-pager # Disable the pager
241 194 --config: string # Additional configuration options (can be repeated)
244 197 --help(-h) # Print help (see more with '--help')
247 - def "nu-complete jj bookmark rename color" [] {
248 - [ "always" "never" "debug" "auto" ]
251 200 # Rename `old` bookmark name to `new` bookmark name
252 201 export extern "jj bookmark rename" [
253 202 old: string # The old name of the bookmark
258 207 --at-operation: string # Operation to load the repo at
259 208 --at-op: string # Operation to load the repo at
260 209 --debug # Enable debug logging
261 - --color: string@"nu-complete jj bookmark rename color" # When to colorize output
210 + --color: string # When to colorize output (always, never, debug, auto)
262 211 --quiet # Silence non-primary command output
263 212 --no-pager # Disable the pager
264 213 --config: string # Additional configuration options (can be repeated)
267 216 --help(-h) # Print help (see more with '--help')
270 - def "nu-complete jj bookmark set color" [] {
271 - [ "always" "never" "debug" "auto" ]
274 219 # Create or update a bookmark to point to a certain commit
275 220 export extern "jj bookmark set" [
276 221 --revision(-r): string # The bookmark's target revision
283 228 --at-operation: string # Operation to load the repo at
284 229 --at-op: string # Operation to load the repo at
285 230 --debug # Enable debug logging
286 - --color: string@"nu-complete jj bookmark set color" # When to colorize output
231 + --color: string # When to colorize output (always, never, debug, auto)
287 232 --quiet # Silence non-primary command output
288 233 --no-pager # Disable the pager
289 234 --config: string # Additional configuration options (can be repeated)
292 237 --help(-h) # Print help (see more with '--help')
295 - def "nu-complete jj bookmark track color" [] {
296 - [ "always" "never" "debug" "auto" ]
299 240 # Start tracking given remote bookmarks
300 241 export extern "jj bookmark track" [
301 242 ...names: string # Remote bookmarks to track
305 246 --at-operation: string # Operation to load the repo at
306 247 --at-op: string # Operation to load the repo at
307 248 --debug # Enable debug logging
308 - --color: string@"nu-complete jj bookmark track color" # When to colorize output
249 + --color: string # When to colorize output (always, never, debug, auto)
309 250 --quiet # Silence non-primary command output
310 251 --no-pager # Disable the pager
311 252 --config: string # Additional configuration options (can be repeated)
314 255 --help(-h) # Print help (see more with '--help')
317 - def "nu-complete jj bookmark untrack color" [] {
318 - [ "always" "never" "debug" "auto" ]
321 258 # Stop tracking given remote bookmarks
322 259 export extern "jj bookmark untrack" [
323 260 ...names: string # Remote bookmarks to untrack
327 264 --at-operation: string # Operation to load the repo at
328 265 --at-op: string # Operation to load the repo at
329 266 --debug # Enable debug logging
330 - --color: string@"nu-complete jj bookmark untrack color" # When to colorize output
267 + --color: string # When to colorize output (always, never, debug, auto)
331 268 --quiet # Silence non-primary command output
332 269 --no-pager # Disable the pager
333 270 --config: string # Additional configuration options (can be repeated)
336 273 --help(-h) # Print help (see more with '--help')
339 - def "nu-complete jj branch color" [] {
340 - [ "always" "never" "debug" "auto" ]
343 276 # Manage bookmarks [default alias: b]
344 277 export extern "jj branch" [
345 278 --repository(-R): path # Path to repository to operate on
348 281 --at-operation: string # Operation to load the repo at
349 282 --at-op: string # Operation to load the repo at
350 283 --debug # Enable debug logging
351 - --color: string@"nu-complete jj branch color" # When to colorize output
284 + --color: string # When to colorize output (always, never, debug, auto)
352 285 --quiet # Silence non-primary command output
353 286 --no-pager # Disable the pager
354 287 --config: string # Additional configuration options (can be repeated)
357 290 --help(-h) # Print help (see more with '--help')
360 - def "nu-complete jj branch create color" [] {
361 - [ "always" "never" "debug" "auto" ]
364 293 # Create a new bookmark
365 294 export extern "jj branch create" [
366 295 --revision(-r): string # The bookmark's target revision
372 301 --at-operation: string # Operation to load the repo at
373 302 --at-op: string # Operation to load the repo at
374 303 --debug # Enable debug logging
375 - --color: string@"nu-complete jj branch create color" # When to colorize output
304 + --color: string # When to colorize output (always, never, debug, auto)
376 305 --quiet # Silence non-primary command output
377 306 --no-pager # Disable the pager
378 307 --config: string # Additional configuration options (can be repeated)
381 310 --help(-h) # Print help (see more with '--help')
384 - def "nu-complete jj branch delete color" [] {
385 - [ "always" "never" "debug" "auto" ]
388 313 # Delete an existing bookmark and propagate the deletion to remotes on the next push
389 314 export extern "jj branch delete" [
390 315 ...names: string # The bookmarks to delete
394 319 --at-operation: string # Operation to load the repo at
395 320 --at-op: string # Operation to load the repo at
396 321 --debug # Enable debug logging
397 - --color: string@"nu-complete jj branch delete color" # When to colorize output
322 + --color: string # When to colorize output (always, never, debug, auto)
398 323 --quiet # Silence non-primary command output
399 324 --no-pager # Disable the pager
400 325 --config: string # Additional configuration options (can be repeated)
403 328 --help(-h) # Print help (see more with '--help')
406 - def "nu-complete jj branch forget color" [] {
407 - [ "always" "never" "debug" "auto" ]
410 - # Forget a bookmark without marking it as a deletion to be pushed
331 + # Forget everything about a bookmark, including its local and remote targets
411 332 export extern "jj branch forget" [
412 - --include-remotes # When forgetting a local bookmark, also forget any corresponding remote bookmarks
413 333 ...names: string # The bookmarks to forget
414 334 --repository(-R): path # Path to repository to operate on
415 335 --ignore-working-copy # Don't snapshot the working copy, and don't update it
417 337 --at-operation: string # Operation to load the repo at
418 338 --at-op: string # Operation to load the repo at
419 339 --debug # Enable debug logging
420 - --color: string@"nu-complete jj branch forget color" # When to colorize output
340 + --color: string # When to colorize output (always, never, debug, auto)
421 341 --quiet # Silence non-primary command output
422 342 --no-pager # Disable the pager
423 343 --config: string # Additional configuration options (can be repeated)
426 346 --help(-h) # Print help (see more with '--help')
429 - def "nu-complete jj branch list sort" [] {
430 - [ "name" "name-" "author-name" "author-name-" "author-email" "author-email-" "author-date" "author-date-" "committer-name" "committer-name-" "committer-email" "committer-email-" "committer-date" "committer-date-" ]
433 - def "nu-complete jj branch list color" [] {
434 - [ "always" "never" "debug" "auto" ]
437 349 # List bookmarks and their targets
438 350 export extern "jj branch list" [
439 351 --all-remotes(-a) # Show all tracking and non-tracking remote bookmarks including the ones whose targets are synchronized with the local bookmarks
443 355 ...names: string # Show bookmarks whose local name matches
444 356 --revisions(-r): string # Show bookmarks whose local targets are in the given revisions
445 357 --template(-T): string # Render each bookmark using the given template
446 - --sort: string@"nu-complete jj branch list sort" # Sort bookmarks based on the given key (or multiple keys)
447 358 --repository(-R): path # Path to repository to operate on
448 359 --ignore-working-copy # Don't snapshot the working copy, and don't update it
449 360 --ignore-immutable # Allow rewriting immutable commits
450 361 --at-operation: string # Operation to load the repo at
451 362 --at-op: string # Operation to load the repo at
452 363 --debug # Enable debug logging
453 - --color: string@"nu-complete jj branch list color" # When to colorize output
364 + --color: string # When to colorize output (always, never, debug, auto)
454 365 --quiet # Silence non-primary command output
455 366 --no-pager # Disable the pager
456 367 --config: string # Additional configuration options (can be repeated)
459 370 --help(-h) # Print help (see more with '--help')
462 - def "nu-complete jj branch move color" [] {
463 - [ "always" "never" "debug" "auto" ]
466 373 # Move existing bookmarks to target revision
467 374 export extern "jj branch move" [
468 - --from(-f): string # Move bookmarks from the given revisions
469 - --to(-t): string # Move bookmarks to this revision
375 + --from: string # Move bookmarks from the given revisions
376 + --to: string # Move bookmarks to this revision
470 377 --allow-backwards(-B) # Allow moving bookmarks backwards or sideways
471 378 ...names: string # Move bookmarks matching the given name patterns
472 379 --repository(-R): path # Path to repository to operate on
475 382 --at-operation: string # Operation to load the repo at
476 383 --at-op: string # Operation to load the repo at
477 384 --debug # Enable debug logging
478 - --color: string@"nu-complete jj branch move color" # When to colorize output
385 + --color: string # When to colorize output (always, never, debug, auto)
479 386 --quiet # Silence non-primary command output
480 387 --no-pager # Disable the pager
481 388 --config: string # Additional configuration options (can be repeated)
484 391 --help(-h) # Print help (see more with '--help')
487 - def "nu-complete jj branch rename color" [] {
488 - [ "always" "never" "debug" "auto" ]
491 394 # Rename `old` bookmark name to `new` bookmark name
492 395 export extern "jj branch rename" [
493 396 old: string # The old name of the bookmark
498 401 --at-operation: string # Operation to load the repo at
499 402 --at-op: string # Operation to load the repo at
500 403 --debug # Enable debug logging
501 - --color: string@"nu-complete jj branch rename color" # When to colorize output
404 + --color: string # When to colorize output (always, never, debug, auto)
502 405 --quiet # Silence non-primary command output
503 406 --no-pager # Disable the pager
504 407 --config: string # Additional configuration options (can be repeated)
507 410 --help(-h) # Print help (see more with '--help')
510 - def "nu-complete jj branch set color" [] {
511 - [ "always" "never" "debug" "auto" ]
514 413 # Create or update a bookmark to point to a certain commit
515 414 export extern "jj branch set" [
516 415 --revision(-r): string # The bookmark's target revision
523 422 --at-operation: string # Operation to load the repo at
524 423 --at-op: string # Operation to load the repo at
525 424 --debug # Enable debug logging
526 - --color: string@"nu-complete jj branch set color" # When to colorize output
425 + --color: string # When to colorize output (always, never, debug, auto)
527 426 --quiet # Silence non-primary command output
528 427 --no-pager # Disable the pager
529 428 --config: string # Additional configuration options (can be repeated)
532 431 --help(-h) # Print help (see more with '--help')
535 - def "nu-complete jj branch track color" [] {
536 - [ "always" "never" "debug" "auto" ]
539 434 # Start tracking given remote bookmarks
540 435 export extern "jj branch track" [
541 436 ...names: string # Remote bookmarks to track
545 440 --at-operation: string # Operation to load the repo at
546 441 --at-op: string # Operation to load the repo at
547 442 --debug # Enable debug logging
548 - --color: string@"nu-complete jj branch track color" # When to colorize output
443 + --color: string # When to colorize output (always, never, debug, auto)
549 444 --quiet # Silence non-primary command output
550 445 --no-pager # Disable the pager
551 446 --config: string # Additional configuration options (can be repeated)
554 449 --help(-h) # Print help (see more with '--help')
557 - def "nu-complete jj branch untrack color" [] {
558 - [ "always" "never" "debug" "auto" ]
561 452 # Stop tracking given remote bookmarks
562 453 export extern "jj branch untrack" [
563 454 ...names: string # Remote bookmarks to untrack
567 458 --at-operation: string # Operation to load the repo at
568 459 --at-op: string # Operation to load the repo at
569 460 --debug # Enable debug logging
570 - --color: string@"nu-complete jj branch untrack color" # When to colorize output
461 + --color: string # When to colorize output (always, never, debug, auto)
571 462 --quiet # Silence non-primary command output
572 463 --no-pager # Disable the pager
573 464 --config: string # Additional configuration options (can be repeated)
576 467 --help(-h) # Print help (see more with '--help')
579 - def "nu-complete jj commit color" [] {
580 - [ "always" "never" "debug" "auto" ]
470 + # Print contents of files in a revision
471 + export extern "jj cat" [
472 + --revision(-r): string # The revision to get the file contents from
473 + ...paths: path # Paths to print
474 + --repository(-R): path # Path to repository to operate on
475 + --ignore-working-copy # Don't snapshot the working copy, and don't update it
476 + --ignore-immutable # Allow rewriting immutable commits
477 + --at-operation: string # Operation to load the repo at
478 + --at-op: string # Operation to load the repo at
479 + --debug # Enable debug logging
480 + --color: string # When to colorize output (always, never, debug, auto)
481 + --quiet # Silence non-primary command output
482 + --no-pager # Disable the pager
483 + --config: string # Additional configuration options (can be repeated)
484 + --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
485 + --config-file: path # Additional configuration files (can be repeated)
486 + --help(-h) # Print help (see more with '--help')
489 + def "nu-complete jj chmod mode" [] {
490 + [ "n" "x" ]
493 + # Sets or removes the executable bit for paths in the repo
494 + export extern "jj chmod" [
495 + mode: string@"nu-complete jj chmod mode"
496 + --revision(-r): string # The revision to update
497 + ...paths: path # Paths to change the executable bit for
498 + --repository(-R): path # Path to repository to operate on
499 + --ignore-working-copy # Don't snapshot the working copy, and don't update it
500 + --ignore-immutable # Allow rewriting immutable commits
501 + --at-operation: string # Operation to load the repo at
502 + --at-op: string # Operation to load the repo at
503 + --debug # Enable debug logging
504 + --color: string # When to colorize output (always, never, debug, auto)
505 + --quiet # Silence non-primary command output
506 + --no-pager # Disable the pager
507 + --config: string # Additional configuration options (can be repeated)
508 + --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
509 + --config-file: path # Additional configuration files (can be repeated)
510 + --help(-h) # Print help (see more with '--help')
583 513 # Update the description and create a new change on top
584 514 export extern "jj commit" [
585 515 --interactive(-i) # Interactively choose which changes to include in the first commit
594 524 --at-operation: string # Operation to load the repo at
595 525 --at-op: string # Operation to load the repo at
596 526 --debug # Enable debug logging
597 - --color: string@"nu-complete jj commit color" # When to colorize output
527 + --color: string # When to colorize output (always, never, debug, auto)
598 528 --quiet # Silence non-primary command output
599 529 --no-pager # Disable the pager
600 530 --config: string # Additional configuration options (can be repeated)
603 533 --help(-h) # Print help (see more with '--help')
606 - def "nu-complete jj config color" [] {
607 - [ "always" "never" "debug" "auto" ]
610 536 # Manage config options
611 537 export extern "jj config" [
612 538 --repository(-R): path # Path to repository to operate on
615 541 --at-operation: string # Operation to load the repo at
616 542 --at-op: string # Operation to load the repo at
617 543 --debug # Enable debug logging
618 - --color: string@"nu-complete jj config color" # When to colorize output
544 + --color: string # When to colorize output (always, never, debug, auto)
619 545 --quiet # Silence non-primary command output
620 546 --no-pager # Disable the pager
621 547 --config: string # Additional configuration options (can be repeated)
624 550 --help(-h) # Print help (see more with '--help')
627 - def "nu-complete jj config edit color" [] {
628 - [ "always" "never" "debug" "auto" ]
631 553 # Start an editor on a jj config file
632 554 export extern "jj config edit" [
633 555 --user # Target the user-level config
638 560 --at-operation: string # Operation to load the repo at
639 561 --at-op: string # Operation to load the repo at
640 562 --debug # Enable debug logging
641 - --color: string@"nu-complete jj config edit color" # When to colorize output
563 + --color: string # When to colorize output (always, never, debug, auto)
642 564 --quiet # Silence non-primary command output
643 565 --no-pager # Disable the pager
644 566 --config: string # Additional configuration options (can be repeated)
647 569 --help(-h) # Print help (see more with '--help')
650 - def "nu-complete jj config get color" [] {
651 - [ "always" "never" "debug" "auto" ]
654 572 # Get the value of a given config option.
655 573 export extern "jj config get" [
656 574 name: string
660 578 --at-operation: string # Operation to load the repo at
661 579 --at-op: string # Operation to load the repo at
662 580 --debug # Enable debug logging
663 - --color: string@"nu-complete jj config get color" # When to colorize output
581 + --color: string # When to colorize output (always, never, debug, auto)
664 582 --quiet # Silence non-primary command output
665 583 --no-pager # Disable the pager
666 584 --config: string # Additional configuration options (can be repeated)
669 587 --help(-h) # Print help (see more with '--help')
672 - def "nu-complete jj config list color" [] {
673 - [ "always" "never" "debug" "auto" ]
676 - # List variables set in config files, along with their values
590 + # List variables set in config file, along with their values
677 591 export extern "jj config list" [
678 592 name?: string # An optional name of a specific config option to look up
679 593 --include-defaults # Whether to explicitly include built-in default values in the list
687 601 --at-operation: string # Operation to load the repo at
688 602 --at-op: string # Operation to load the repo at
689 603 --debug # Enable debug logging
690 - --color: string@"nu-complete jj config list color" # When to colorize output
604 + --color: string # When to colorize output (always, never, debug, auto)
691 605 --quiet # Silence non-primary command output
692 606 --no-pager # Disable the pager
693 607 --config: string # Additional configuration options (can be repeated)
696 610 --help(-h) # Print help (see more with '--help')
699 - def "nu-complete jj config path color" [] {
700 - [ "always" "never" "debug" "auto" ]
703 - # Print the paths to the config files
613 + # Print the path to the config file
704 614 export extern "jj config path" [
705 615 --user # Target the user-level config
706 616 --repo # Target the repo-level config
710 620 --at-operation: string # Operation to load the repo at
711 621 --at-op: string # Operation to load the repo at
712 622 --debug # Enable debug logging
713 - --color: string@"nu-complete jj config path color" # When to colorize output
623 + --color: string # When to colorize output (always, never, debug, auto)
714 624 --quiet # Silence non-primary command output
715 625 --no-pager # Disable the pager
716 626 --config: string # Additional configuration options (can be repeated)
719 629 --help(-h) # Print help (see more with '--help')
722 - def "nu-complete jj config set color" [] {
723 - [ "always" "never" "debug" "auto" ]
726 - # Update a config file to set the given option to a given value
632 + # Update config file to set the given option to a given value
727 633 export extern "jj config set" [
728 634 name: string
729 635 value: string # New value to set
735 641 --at-operation: string # Operation to load the repo at
736 642 --at-op: string # Operation to load the repo at
737 643 --debug # Enable debug logging
738 - --color: string@"nu-complete jj config set color" # When to colorize output
644 + --color: string # When to colorize output (always, never, debug, auto)
739 645 --quiet # Silence non-primary command output
740 646 --no-pager # Disable the pager
741 647 --config: string # Additional configuration options (can be repeated)
744 650 --help(-h) # Print help (see more with '--help')
747 - def "nu-complete jj config unset color" [] {
748 - [ "always" "never" "debug" "auto" ]
751 - # Update a config file to unset the given option
653 + # Update config file to unset the given option
752 654 export extern "jj config unset" [
753 655 name: string
754 656 --user # Target the user-level config
759 661 --at-operation: string # Operation to load the repo at
760 662 --at-op: string # Operation to load the repo at
761 663 --debug # Enable debug logging
762 - --color: string@"nu-complete jj config unset color" # When to colorize output
664 + --color: string # When to colorize output (always, never, debug, auto)
763 665 --quiet # Silence non-primary command output
764 666 --no-pager # Disable the pager
765 667 --config: string # Additional configuration options (can be repeated)
768 670 --help(-h) # Print help (see more with '--help')
771 - def "nu-complete jj debug color" [] {
772 - [ "always" "never" "debug" "auto" ]
775 673 # Low-level commands not intended for users
776 674 export extern "jj debug" [
777 675 --repository(-R): path # Path to repository to operate on
780 678 --at-operation: string # Operation to load the repo at
781 679 --at-op: string # Operation to load the repo at
782 680 --debug # Enable debug logging
783 - --color: string@"nu-complete jj debug color" # When to colorize output
681 + --color: string # When to colorize output (always, never, debug, auto)
784 682 --quiet # Silence non-primary command output
785 683 --no-pager # Disable the pager
786 684 --config: string # Additional configuration options (can be repeated)
789 687 --help(-h) # Print help (see more with '--help')
792 - def "nu-complete jj debug copy-detection color" [] {
793 - [ "always" "never" "debug" "auto" ]
796 - # Show information about file copies detected
690 + # Rebuild commit index
797 691 export extern "jj debug copy-detection" [
798 - revision?: string # Show file copies detected in changed files in this revision, compared to its parent(s)
692 + revision?: string # Show changes in this revision, compared to its parent(s)
799 693 --repository(-R): path # Path to repository to operate on
800 694 --ignore-working-copy # Don't snapshot the working copy, and don't update it
801 695 --ignore-immutable # Allow rewriting immutable commits
802 696 --at-operation: string # Operation to load the repo at
803 697 --at-op: string # Operation to load the repo at
804 698 --debug # Enable debug logging
805 - --color: string@"nu-complete jj debug copy-detection color" # When to colorize output
699 + --color: string # When to colorize output (always, never, debug, auto)
806 700 --quiet # Silence non-primary command output
807 701 --no-pager # Disable the pager
808 702 --config: string # Additional configuration options (can be repeated)
811 705 --help(-h) # Print help (see more with '--help')
814 - def "nu-complete jj debug fileset color" [] {
815 - [ "always" "never" "debug" "auto" ]
818 708 # Parse fileset expression
819 709 export extern "jj debug fileset" [
820 710 path: path
824 714 --at-operation: string # Operation to load the repo at
825 715 --at-op: string # Operation to load the repo at
826 716 --debug # Enable debug logging
827 - --color: string@"nu-complete jj debug fileset color" # When to colorize output
717 + --color: string # When to colorize output (always, never, debug, auto)
828 718 --quiet # Silence non-primary command output
829 719 --no-pager # Disable the pager
830 720 --config: string # Additional configuration options (can be repeated)
833 723 --help(-h) # Print help (see more with '--help')
836 - def "nu-complete jj debug index color" [] {
837 - [ "always" "never" "debug" "auto" ]
840 726 # Show commit index stats
841 727 export extern "jj debug index" [
842 728 --repository(-R): path # Path to repository to operate on
845 731 --at-operation: string # Operation to load the repo at
846 732 --at-op: string # Operation to load the repo at
847 733 --debug # Enable debug logging
848 - --color: string@"nu-complete jj debug index color" # When to colorize output
734 + --color: string # When to colorize output (always, never, debug, auto)
849 735 --quiet # Silence non-primary command output
850 736 --no-pager # Disable the pager
851 737 --config: string # Additional configuration options (can be repeated)
854 740 --help(-h) # Print help (see more with '--help')
857 - def "nu-complete jj debug init-simple color" [] {
858 - [ "always" "never" "debug" "auto" ]
861 - # Create a new repo in the given directory using the proof-of-concept simple backend
862 - export extern "jj debug init-simple" [
863 - destination?: path # The destination directory
864 - --repository(-R): path # Path to repository to operate on
865 - --ignore-working-copy # Don't snapshot the working copy, and don't update it
866 - --ignore-immutable # Allow rewriting immutable commits
867 - --at-operation: string # Operation to load the repo at
868 - --at-op: string # Operation to load the repo at
869 - --debug # Enable debug logging
870 - --color: string@"nu-complete jj debug init-simple color" # When to colorize output
871 - --quiet # Silence non-primary command output
872 - --no-pager # Disable the pager
873 - --config: string # Additional configuration options (can be repeated)
874 - --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
875 - --config-file: path # Additional configuration files (can be repeated)
876 - --help(-h) # Print help (see more with '--help')
879 - def "nu-complete jj debug local-working-copy color" [] {
880 - [ "always" "never" "debug" "auto" ]
883 743 # Show information about the local working copy state
884 744 export extern "jj debug local-working-copy" [
885 745 --repository(-R): path # Path to repository to operate on
888 748 --at-operation: string # Operation to load the repo at
889 749 --at-op: string # Operation to load the repo at
890 750 --debug # Enable debug logging
891 - --color: string@"nu-complete jj debug local-working-copy color" # When to colorize output
751 + --color: string # When to colorize output (always, never, debug, auto)
892 752 --quiet # Silence non-primary command output
893 753 --no-pager # Disable the pager
894 754 --config: string # Additional configuration options (can be repeated)
901 761 [ "operation" "id" "view" "all" ]
904 - def "nu-complete jj debug operation color" [] {
905 - [ "always" "never" "debug" "auto" ]
908 764 # Show information about an operation and its view
909 765 export extern "jj debug operation" [
910 766 operation?: string
915 771 --at-operation: string # Operation to load the repo at
916 772 --at-op: string # Operation to load the repo at
917 773 --debug # Enable debug logging
918 - --color: string@"nu-complete jj debug operation color" # When to colorize output
774 + --color: string # When to colorize output (always, never, debug, auto)
919 775 --quiet # Silence non-primary command output
920 776 --no-pager # Disable the pager
921 777 --config: string # Additional configuration options (can be repeated)
924 780 --help(-h) # Print help (see more with '--help')
927 - def "nu-complete jj debug reindex color" [] {
928 - [ "always" "never" "debug" "auto" ]
931 783 # Rebuild commit index
932 784 export extern "jj debug reindex" [
933 785 --repository(-R): path # Path to repository to operate on
936 788 --at-operation: string # Operation to load the repo at
937 789 --at-op: string # Operation to load the repo at
938 790 --debug # Enable debug logging
939 - --color: string@"nu-complete jj debug reindex color" # When to colorize output
791 + --color: string # When to colorize output (always, never, debug, auto)
940 792 --quiet # Silence non-primary command output
941 793 --no-pager # Disable the pager
942 794 --config: string # Additional configuration options (can be repeated)
945 797 --help(-h) # Print help (see more with '--help')
948 - def "nu-complete jj debug revset color" [] {
949 - [ "always" "never" "debug" "auto" ]
952 800 # Evaluate revset to full commit IDs
953 801 export extern "jj debug revset" [
954 802 revision: string
958 806 --at-operation: string # Operation to load the repo at
959 807 --at-op: string # Operation to load the repo at
960 808 --debug # Enable debug logging
961 - --color: string@"nu-complete jj debug revset color" # When to colorize output
809 + --color: string # When to colorize output (always, never, debug, auto)
962 810 --quiet # Silence non-primary command output
963 811 --no-pager # Disable the pager
964 812 --config: string # Additional configuration options (can be repeated)
967 815 --help(-h) # Print help (see more with '--help')
970 - def "nu-complete jj debug snapshot color" [] {
971 - [ "always" "never" "debug" "auto" ]
974 818 # Trigger a snapshot in the op log
975 819 export extern "jj debug snapshot" [
976 820 --repository(-R): path # Path to repository to operate on
979 823 --at-operation: string # Operation to load the repo at
980 824 --at-op: string # Operation to load the repo at
981 825 --debug # Enable debug logging
982 - --color: string@"nu-complete jj debug snapshot color" # When to colorize output
826 + --color: string # When to colorize output (always, never, debug, auto)
983 827 --quiet # Silence non-primary command output
984 828 --no-pager # Disable the pager
985 829 --config: string # Additional configuration options (can be repeated)
988 832 --help(-h) # Print help (see more with '--help')
991 - def "nu-complete jj debug template color" [] {
992 - [ "always" "never" "debug" "auto" ]
995 835 # Parse a template
996 836 export extern "jj debug template" [
997 837 template: string
1001 841 --at-operation: string # Operation to load the repo at
1002 842 --at-op: string # Operation to load the repo at
1003 843 --debug # Enable debug logging
1004 - --color: string@"nu-complete jj debug template color" # When to colorize output
844 + --color: string # When to colorize output (always, never, debug, auto)
1005 845 --quiet # Silence non-primary command output
1006 846 --no-pager # Disable the pager
1007 847 --config: string # Additional configuration options (can be repeated)
1010 850 --help(-h) # Print help (see more with '--help')
1013 - def "nu-complete jj debug tree color" [] {
1014 - [ "always" "never" "debug" "auto" ]
1017 853 # List the recursive entries of a tree
1018 854 export extern "jj debug tree" [
1019 855 --revision(-r): string
1026 862 --at-operation: string # Operation to load the repo at
1027 863 --at-op: string # Operation to load the repo at
1028 864 --debug # Enable debug logging
1029 - --color: string@"nu-complete jj debug tree color" # When to colorize output
865 + --color: string # When to colorize output (always, never, debug, auto)
1030 866 --quiet # Silence non-primary command output
1031 867 --no-pager # Disable the pager
1032 868 --config: string # Additional configuration options (can be repeated)
1035 871 --help(-h) # Print help (see more with '--help')
1038 - def "nu-complete jj debug watchman color" [] {
1039 - [ "always" "never" "debug" "auto" ]
1042 874 export extern "jj debug watchman" [
1043 875 --repository(-R): path # Path to repository to operate on
1044 876 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1046 878 --at-operation: string # Operation to load the repo at
1047 879 --at-op: string # Operation to load the repo at
1048 880 --debug # Enable debug logging
1049 - --color: string@"nu-complete jj debug watchman color" # When to colorize output
881 + --color: string # When to colorize output (always, never, debug, auto)
1050 882 --quiet # Silence non-primary command output
1051 883 --no-pager # Disable the pager
1052 884 --config: string # Additional configuration options (can be repeated)
1055 887 --help(-h) # Print help (see more with '--help')
1058 - def "nu-complete jj debug watchman status color" [] {
1059 - [ "always" "never" "debug" "auto" ]
1062 890 # Check whether `watchman` is enabled and whether it's correctly installed
1063 891 export extern "jj debug watchman status" [
1064 892 --repository(-R): path # Path to repository to operate on
1067 895 --at-operation: string # Operation to load the repo at
1068 896 --at-op: string # Operation to load the repo at
1069 897 --debug # Enable debug logging
1070 - --color: string@"nu-complete jj debug watchman status color" # When to colorize output
898 + --color: string # When to colorize output (always, never, debug, auto)
1071 899 --quiet # Silence non-primary command output
1072 900 --no-pager # Disable the pager
1073 901 --config: string # Additional configuration options (can be repeated)
1076 904 --help(-h) # Print help (see more with '--help')
1079 - def "nu-complete jj debug watchman query-clock color" [] {
1080 - [ "always" "never" "debug" "auto" ]
1083 907 export extern "jj debug watchman query-clock" [
1084 908 --repository(-R): path # Path to repository to operate on
1085 909 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1087 911 --at-operation: string # Operation to load the repo at
1088 912 --at-op: string # Operation to load the repo at
1089 913 --debug # Enable debug logging
1090 - --color: string@"nu-complete jj debug watchman query-clock color" # When to colorize output
914 + --color: string # When to colorize output (always, never, debug, auto)
1091 915 --quiet # Silence non-primary command output
1092 916 --no-pager # Disable the pager
1093 917 --config: string # Additional configuration options (can be repeated)
1096 920 --help(-h) # Print help (see more with '--help')
1099 - def "nu-complete jj debug watchman query-changed-files color" [] {
1100 - [ "always" "never" "debug" "auto" ]
1103 923 export extern "jj debug watchman query-changed-files" [
1104 924 --repository(-R): path # Path to repository to operate on
1105 925 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1107 927 --at-operation: string # Operation to load the repo at
1108 928 --at-op: string # Operation to load the repo at
1109 929 --debug # Enable debug logging
1110 - --color: string@"nu-complete jj debug watchman query-changed-files color" # When to colorize output
930 + --color: string # When to colorize output (always, never, debug, auto)
1111 931 --quiet # Silence non-primary command output
1112 932 --no-pager # Disable the pager
1113 933 --config: string # Additional configuration options (can be repeated)
1116 936 --help(-h) # Print help (see more with '--help')
1119 - def "nu-complete jj debug watchman reset-clock color" [] {
1120 - [ "always" "never" "debug" "auto" ]
1123 939 export extern "jj debug watchman reset-clock" [
1124 940 --repository(-R): path # Path to repository to operate on
1125 941 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1127 943 --at-operation: string # Operation to load the repo at
1128 944 --at-op: string # Operation to load the repo at
1129 945 --debug # Enable debug logging
1130 - --color: string@"nu-complete jj debug watchman reset-clock color" # When to colorize output
946 + --color: string # When to colorize output (always, never, debug, auto)
1131 947 --quiet # Silence non-primary command output
1132 948 --no-pager # Disable the pager
1133 949 --config: string # Additional configuration options (can be repeated)
1136 952 --help(-h) # Print help (see more with '--help')
1139 - def "nu-complete jj debug working-copy color" [] {
1140 - [ "always" "never" "debug" "auto" ]
1143 955 # Show information about the working copy state
1144 956 export extern "jj debug working-copy" [
1145 957 --repository(-R): path # Path to repository to operate on
1148 960 --at-operation: string # Operation to load the repo at
1149 961 --at-op: string # Operation to load the repo at
1150 962 --debug # Enable debug logging
1151 - --color: string@"nu-complete jj debug working-copy color" # When to colorize output
963 + --color: string # When to colorize output (always, never, debug, auto)
1152 964 --quiet # Silence non-primary command output
1153 965 --no-pager # Disable the pager
1154 966 --config: string # Additional configuration options (can be repeated)
1157 969 --help(-h) # Print help (see more with '--help')
1160 - def "nu-complete jj describe color" [] {
1161 - [ "always" "never" "debug" "auto" ]
1164 972 # Update the change description or other metadata
1165 973 export extern "jj describe" [
1166 974 ...revisions_pos: string # The revision(s) whose description to edit (default: @)
1168 976 --message(-m): string # The change description to use (don't open editor)
1169 977 --stdin # Read the change description from stdin
1170 978 --no-edit # Don't open an editor
1171 - --edit # Open an editor
1172 979 --reset-author # Reset the author to the configured user
1173 980 --author: string # Set author to the provided string
1174 981 --repository(-R): path # Path to repository to operate on
1177 984 --at-operation: string # Operation to load the repo at
1178 985 --at-op: string # Operation to load the repo at
1179 986 --debug # Enable debug logging
1180 - --color: string@"nu-complete jj describe color" # When to colorize output
987 + --color: string # When to colorize output (always, never, debug, auto)
1181 988 --quiet # Silence non-primary command output
1182 989 --no-pager # Disable the pager
1183 990 --config: string # Additional configuration options (can be repeated)
1186 993 --help(-h) # Print help (see more with '--help')
1189 - def "nu-complete jj diff color" [] {
1190 - [ "always" "never" "debug" "auto" ]
1193 996 # Compare file contents between two revisions
1194 997 export extern "jj diff" [
1195 - --revisions(-r): string # Show changes in these revisions
998 + --revision(-r): string # Show changes in this revision, compared to its parent(s)
1196 999 --from(-f): string # Show changes from this revision
1197 1000 --to(-t): string # Show changes to this revision
1198 1001 ...paths: path # Restrict the diff to these paths
1212 1015 --at-operation: string # Operation to load the repo at
1213 1016 --at-op: string # Operation to load the repo at
1214 1017 --debug # Enable debug logging
1215 - --color: string@"nu-complete jj diff color" # When to colorize output
1018 + --color: string # When to colorize output (always, never, debug, auto)
1216 1019 --quiet # Silence non-primary command output
1217 1020 --no-pager # Disable the pager
1218 1021 --config: string # Additional configuration options (can be repeated)
1221 1024 --help(-h) # Print help (see more with '--help')
1224 - def "nu-complete jj diffedit color" [] {
1225 - [ "always" "never" "debug" "auto" ]
1228 1027 # Touch up the content changes in a revision with a diff editor
1229 1028 export extern "jj diffedit" [
1230 1029 --revision(-r): string # The revision to touch up
1238 1037 --at-operation: string # Operation to load the repo at
1239 1038 --at-op: string # Operation to load the repo at
1240 1039 --debug # Enable debug logging
1241 - --color: string@"nu-complete jj diffedit color" # When to colorize output
1040 + --color: string # When to colorize output (always, never, debug, auto)
1242 1041 --quiet # Silence non-primary command output
1243 1042 --no-pager # Disable the pager
1244 1043 --config: string # Additional configuration options (can be repeated)
1247 1046 --help(-h) # Print help (see more with '--help')
1250 - def "nu-complete jj duplicate color" [] {
1251 - [ "always" "never" "debug" "auto" ]
1254 1049 # Create new changes with the same content as existing ones
1255 1050 export extern "jj duplicate" [
1256 1051 ...revisions_pos: string # The revision(s) to duplicate (default: @)
1266 1061 --at-operation: string # Operation to load the repo at
1267 1062 --at-op: string # Operation to load the repo at
1268 1063 --debug # Enable debug logging
1269 - --color: string@"nu-complete jj duplicate color" # When to colorize output
1064 + --color: string # When to colorize output (always, never, debug, auto)
1270 1065 --quiet # Silence non-primary command output
1271 1066 --no-pager # Disable the pager
1272 1067 --config: string # Additional configuration options (can be repeated)
1275 1070 --help(-h) # Print help (see more with '--help')
1278 - def "nu-complete jj edit color" [] {
1279 - [ "always" "never" "debug" "auto" ]
1282 1073 # Sets the specified revision as the working-copy revision
1283 1074 export extern "jj edit" [
1284 1075 revision: string # The commit to edit
1289 1080 --at-operation: string # Operation to load the repo at
1290 1081 --at-op: string # Operation to load the repo at
1291 1082 --debug # Enable debug logging
1292 - --color: string@"nu-complete jj edit color" # When to colorize output
1083 + --color: string # When to colorize output (always, never, debug, auto)
1293 1084 --quiet # Silence non-primary command output
1294 1085 --no-pager # Disable the pager
1295 1086 --config: string # Additional configuration options (can be repeated)
1298 1089 --help(-h) # Print help (see more with '--help')
1301 - def "nu-complete jj evolog color" [] {
1302 - [ "always" "never" "debug" "auto" ]
1305 1092 # Show how a change has evolved over time
1306 1093 export extern "jj evolog" [
1307 1094 --revision(-r): string
1308 1095 --limit(-n): string # Limit number of revisions to show
1309 - --reversed # Show revisions in the opposite order (older revisions first)
1096 + -l: string
1310 1097 --no-graph # Don't show the graph, show a flat list of revisions
1311 1098 --template(-T): string # Render each revision using the given template
1312 1099 --patch(-p) # Show patch compared to the previous version of this change
1326 1113 --at-operation: string # Operation to load the repo at
1327 1114 --at-op: string # Operation to load the repo at
1328 1115 --debug # Enable debug logging
1329 - --color: string@"nu-complete jj evolog color" # When to colorize output
1116 + --color: string # When to colorize output (always, never, debug, auto)
1330 1117 --quiet # Silence non-primary command output
1331 1118 --no-pager # Disable the pager
1332 1119 --config: string # Additional configuration options (can be repeated)
1335 1122 --help(-h) # Print help (see more with '--help')
1338 - def "nu-complete jj file color" [] {
1339 - [ "always" "never" "debug" "auto" ]
1342 1125 # File operations
1343 1126 export extern "jj file" [
1344 1127 --repository(-R): path # Path to repository to operate on
1347 1130 --at-operation: string # Operation to load the repo at
1348 1131 --at-op: string # Operation to load the repo at
1349 1132 --debug # Enable debug logging
1350 - --color: string@"nu-complete jj file color" # When to colorize output
1133 + --color: string # When to colorize output (always, never, debug, auto)
1351 1134 --quiet # Silence non-primary command output
1352 1135 --no-pager # Disable the pager
1353 1136 --config: string # Additional configuration options (can be repeated)
1356 1139 --help(-h) # Print help (see more with '--help')
1359 - def "nu-complete jj file annotate color" [] {
1360 - [ "always" "never" "debug" "auto" ]
1363 1142 # Show the source change for each line of the target file
1364 1143 export extern "jj file annotate" [
1365 1144 path: path # the file to annotate
1366 1145 --revision(-r): string # an optional revision to start at
1367 - --template(-T): string # Render each line using the given template
1368 1146 --repository(-R): path # Path to repository to operate on
1369 1147 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1370 1148 --ignore-immutable # Allow rewriting immutable commits
1371 1149 --at-operation: string # Operation to load the repo at
1372 1150 --at-op: string # Operation to load the repo at
1373 1151 --debug # Enable debug logging
1374 - --color: string@"nu-complete jj file annotate color" # When to colorize output
1152 + --color: string # When to colorize output (always, never, debug, auto)
1375 1153 --quiet # Silence non-primary command output
1376 1154 --no-pager # Disable the pager
1377 1155 --config: string # Additional configuration options (can be repeated)
1384 1162 [ "n" "x" ]
1387 - def "nu-complete jj file chmod color" [] {
1388 - [ "always" "never" "debug" "auto" ]
1391 1165 # Sets or removes the executable bit for paths in the repo
1392 1166 export extern "jj file chmod" [
1393 1167 mode: string@"nu-complete jj file chmod mode"
1399 1173 --at-operation: string # Operation to load the repo at
1400 1174 --at-op: string # Operation to load the repo at
1401 1175 --debug # Enable debug logging
1402 - --color: string@"nu-complete jj file chmod color" # When to colorize output
1176 + --color: string # When to colorize output (always, never, debug, auto)
1403 1177 --quiet # Silence non-primary command output
1404 1178 --no-pager # Disable the pager
1405 1179 --config: string # Additional configuration options (can be repeated)
1408 1182 --help(-h) # Print help (see more with '--help')
1411 - def "nu-complete jj file list color" [] {
1412 - [ "always" "never" "debug" "auto" ]
1415 1185 # List files in a revision
1416 1186 export extern "jj file list" [
1417 1187 --revision(-r): string # The revision to list files in
1418 - --template(-T): string # Render each file entry using the given template
1419 1188 ...paths: path # Only list files matching these prefixes (instead of all files)
1420 1189 --repository(-R): path # Path to repository to operate on
1421 1190 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1423 1192 --at-operation: string # Operation to load the repo at
1424 1193 --at-op: string # Operation to load the repo at
1425 1194 --debug # Enable debug logging
1426 - --color: string@"nu-complete jj file list color" # When to colorize output
1195 + --color: string # When to colorize output (always, never, debug, auto)
1427 1196 --quiet # Silence non-primary command output
1428 1197 --no-pager # Disable the pager
1429 1198 --config: string # Additional configuration options (can be repeated)
1432 1201 --help(-h) # Print help (see more with '--help')
1435 - def "nu-complete jj file show color" [] {
1436 - [ "always" "never" "debug" "auto" ]
1439 1204 # Print contents of files in a revision
1440 1205 export extern "jj file show" [
1441 1206 --revision(-r): string # The revision to get the file contents from
1446 1211 --at-operation: string # Operation to load the repo at
1447 1212 --at-op: string # Operation to load the repo at
1448 1213 --debug # Enable debug logging
1449 - --color: string@"nu-complete jj file show color" # When to colorize output
1214 + --color: string # When to colorize output (always, never, debug, auto)
1450 1215 --quiet # Silence non-primary command output
1451 1216 --no-pager # Disable the pager
1452 1217 --config: string # Additional configuration options (can be repeated)
1455 1220 --help(-h) # Print help (see more with '--help')
1458 - def "nu-complete jj file track color" [] {
1459 - [ "always" "never" "debug" "auto" ]
1462 1223 # Start tracking specified paths in the working copy
1463 1224 export extern "jj file track" [
1464 1225 ...paths: path # Paths to track
1468 1229 --at-operation: string # Operation to load the repo at
1469 1230 --at-op: string # Operation to load the repo at
1470 1231 --debug # Enable debug logging
1471 - --color: string@"nu-complete jj file track color" # When to colorize output
1232 + --color: string # When to colorize output (always, never, debug, auto)
1472 1233 --quiet # Silence non-primary command output
1473 1234 --no-pager # Disable the pager
1474 1235 --config: string # Additional configuration options (can be repeated)
1477 1238 --help(-h) # Print help (see more with '--help')
1480 - def "nu-complete jj file untrack color" [] {
1481 - [ "always" "never" "debug" "auto" ]
1484 1241 # Stop tracking specified paths in the working copy
1485 1242 export extern "jj file untrack" [
1486 1243 ...paths: path # Paths to untrack. They must already be ignored
1490 1247 --at-operation: string # Operation to load the repo at
1491 1248 --at-op: string # Operation to load the repo at
1492 1249 --debug # Enable debug logging
1493 - --color: string@"nu-complete jj file untrack color" # When to colorize output
1250 + --color: string # When to colorize output (always, never, debug, auto)
1494 1251 --quiet # Silence non-primary command output
1495 1252 --no-pager # Disable the pager
1496 1253 --config: string # Additional configuration options (can be repeated)
1499 1256 --help(-h) # Print help (see more with '--help')
1502 - def "nu-complete jj fix color" [] {
1503 - [ "always" "never" "debug" "auto" ]
1259 + # List files in a revision (DEPRECATED use `jj file list`)
1260 + export extern "jj files" [
1261 + --revision(-r): string # The revision to list files in
1262 + ...paths: path # Only list files matching these prefixes (instead of all files)
1263 + --repository(-R): path # Path to repository to operate on
1264 + --ignore-working-copy # Don't snapshot the working copy, and don't update it
1265 + --ignore-immutable # Allow rewriting immutable commits
1266 + --at-operation: string # Operation to load the repo at
1267 + --at-op: string # Operation to load the repo at
1268 + --debug # Enable debug logging
1269 + --color: string # When to colorize output (always, never, debug, auto)
1270 + --quiet # Silence non-primary command output
1271 + --no-pager # Disable the pager
1272 + --config: string # Additional configuration options (can be repeated)
1273 + --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
1274 + --config-file: path # Additional configuration files (can be repeated)
1275 + --help(-h) # Print help (see more with '--help')
1506 1278 # Update files with formatting fixes or other changes
1507 1279 export extern "jj fix" [
1514 1286 --at-operation: string # Operation to load the repo at
1515 1287 --at-op: string # Operation to load the repo at
1516 1288 --debug # Enable debug logging
1517 - --color: string@"nu-complete jj fix color" # When to colorize output
1289 + --color: string # When to colorize output (always, never, debug, auto)
1518 1290 --quiet # Silence non-primary command output
1519 1291 --no-pager # Disable the pager
1520 1292 --config: string # Additional configuration options (can be repeated)
1523 1295 --help(-h) # Print help (see more with '--help')
1526 - def "nu-complete jj git color" [] {
1527 - [ "always" "never" "debug" "auto" ]
1530 1298 # Commands for working with Git remotes and the underlying Git repo
1531 1299 export extern "jj git" [
1532 1300 --repository(-R): path # Path to repository to operate on
1535 1303 --at-operation: string # Operation to load the repo at
1536 1304 --at-op: string # Operation to load the repo at
1537 1305 --debug # Enable debug logging
1538 - --color: string@"nu-complete jj git color" # When to colorize output
1306 + --color: string # When to colorize output (always, never, debug, auto)
1539 1307 --quiet # Silence non-primary command output
1540 1308 --no-pager # Disable the pager
1541 1309 --config: string # Additional configuration options (can be repeated)
1544 1312 --help(-h) # Print help (see more with '--help')
1547 - def "nu-complete jj git clone color" [] {
1548 - [ "always" "never" "debug" "auto" ]
1551 1315 # Create a new repo backed by a clone of a Git repo
1552 1316 export extern "jj git clone" [
1553 - source: string # URL or path of the Git repo to clone
1317 + source: path # URL or path of the Git repo to clone
1554 1318 destination?: path # Specifies the target directory for the Jujutsu repository clone. If not provided, defaults to a directory named after the last component of the source URL. The full directory path will be created if it doesn't exist
1555 1319 --remote: string # Name of the newly created remote
1556 1320 --colocate # Whether or not to colocate the Jujutsu repo with the git repo
1561 1325 --at-operation: string # Operation to load the repo at
1562 1326 --at-op: string # Operation to load the repo at
1563 1327 --debug # Enable debug logging
1564 - --color: string@"nu-complete jj git clone color" # When to colorize output
1328 + --color: string # When to colorize output (always, never, debug, auto)
1565 1329 --quiet # Silence non-primary command output
1566 1330 --no-pager # Disable the pager
1567 1331 --config: string # Additional configuration options (can be repeated)
1570 1334 --help(-h) # Print help (see more with '--help')
1573 - def "nu-complete jj git export color" [] {
1574 - [ "always" "never" "debug" "auto" ]
1577 1337 # Update the underlying Git repo with changes made in the repo
1578 1338 export extern "jj git export" [
1579 1339 --repository(-R): path # Path to repository to operate on
1582 1342 --at-operation: string # Operation to load the repo at
1583 1343 --at-op: string # Operation to load the repo at
1584 1344 --debug # Enable debug logging
1585 - --color: string@"nu-complete jj git export color" # When to colorize output
1345 + --color: string # When to colorize output (always, never, debug, auto)
1586 1346 --quiet # Silence non-primary command output
1587 1347 --no-pager # Disable the pager
1588 1348 --config: string # Additional configuration options (can be repeated)
1591 1351 --help(-h) # Print help (see more with '--help')
1594 - def "nu-complete jj git fetch color" [] {
1595 - [ "always" "never" "debug" "auto" ]
1598 1354 # Fetch from a Git remote
1599 1355 export extern "jj git fetch" [
1600 1356 --branch(-b): string # Fetch only some of the branches
1606 1362 --at-operation: string # Operation to load the repo at
1607 1363 --at-op: string # Operation to load the repo at
1608 1364 --debug # Enable debug logging
1609 - --color: string@"nu-complete jj git fetch color" # When to colorize output
1365 + --color: string # When to colorize output (always, never, debug, auto)
1610 1366 --quiet # Silence non-primary command output
1611 1367 --no-pager # Disable the pager
1612 1368 --config: string # Additional configuration options (can be repeated)
1615 1371 --help(-h) # Print help (see more with '--help')
1618 - def "nu-complete jj git import color" [] {
1619 - [ "always" "never" "debug" "auto" ]
1622 1374 # Update repo with changes made in the underlying Git repo
1623 1375 export extern "jj git import" [
1624 1376 --repository(-R): path # Path to repository to operate on
1627 1379 --at-operation: string # Operation to load the repo at
1628 1380 --at-op: string # Operation to load the repo at
1629 1381 --debug # Enable debug logging
1630 - --color: string@"nu-complete jj git import color" # When to colorize output
1382 + --color: string # When to colorize output (always, never, debug, auto)
1631 1383 --quiet # Silence non-primary command output
1632 1384 --no-pager # Disable the pager
1633 1385 --config: string # Additional configuration options (can be repeated)
1636 1388 --help(-h) # Print help (see more with '--help')
1639 - def "nu-complete jj git init color" [] {
1640 - [ "always" "never" "debug" "auto" ]
1643 1391 # Create a new Git backed repo
1644 1392 export extern "jj git init" [
1645 1393 destination?: path # The destination directory where the `jj` repo will be created. If the directory does not exist, it will be created. If no directory is given, the current directory is used
1651 1399 --at-operation: string # Operation to load the repo at
1652 1400 --at-op: string # Operation to load the repo at
1653 1401 --debug # Enable debug logging
1654 - --color: string@"nu-complete jj git init color" # When to colorize output
1402 + --color: string # When to colorize output (always, never, debug, auto)
1655 1403 --quiet # Silence non-primary command output
1656 1404 --no-pager # Disable the pager
1657 1405 --config: string # Additional configuration options (can be repeated)
1660 1408 --help(-h) # Print help (see more with '--help')
1663 - def "nu-complete jj git push color" [] {
1664 - [ "always" "never" "debug" "auto" ]
1667 1411 # Push to a Git remote
1668 1412 export extern "jj git push" [
1669 1413 --remote: string # The remote to push to (only named remotes are supported)
1670 1414 --bookmark(-b): string # Push only this bookmark, or bookmarks matching a pattern (can be repeated)
1671 - --all # Push all bookmarks (including new bookmarks)
1672 - --tracked # Push all tracked bookmarks
1415 + --all # Push all bookmarks (including new and deleted bookmarks)
1416 + --tracked # Push all tracked bookmarks (including deleted bookmarks)
1673 1417 --deleted # Push all deleted bookmarks
1674 1418 --allow-new(-N) # Allow pushing new bookmarks
1675 1419 --allow-empty-description # Allow pushing commits with empty descriptions
1676 1420 --allow-private # Allow pushing commits that are private
1677 1421 --revisions(-r): string # Push bookmarks pointing to these commits (can be repeated)
1678 1422 --change(-c): string # Push this commit by creating a bookmark based on its change ID (can be repeated)
1679 - --named: string # Specify a new bookmark name and a revision to push under that name, e.g. '--named myfeature=@'
1680 1423 --dry-run # Only display what will change on the remote
1681 1424 --repository(-R): path # Path to repository to operate on
1682 1425 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1684 1427 --at-operation: string # Operation to load the repo at
1685 1428 --at-op: string # Operation to load the repo at
1686 1429 --debug # Enable debug logging
1687 - --color: string@"nu-complete jj git push color" # When to colorize output
1430 + --color: string # When to colorize output (always, never, debug, auto)
1688 1431 --quiet # Silence non-primary command output
1689 1432 --no-pager # Disable the pager
1690 1433 --config: string # Additional configuration options (can be repeated)
1693 1436 --help(-h) # Print help (see more with '--help')
1696 - def "nu-complete jj git remote color" [] {
1697 - [ "always" "never" "debug" "auto" ]
1700 1439 # Manage Git remotes
1701 1440 export extern "jj git remote" [
1702 1441 --repository(-R): path # Path to repository to operate on
1705 1444 --at-operation: string # Operation to load the repo at
1706 1445 --at-op: string # Operation to load the repo at
1707 1446 --debug # Enable debug logging
1708 - --color: string@"nu-complete jj git remote color" # When to colorize output
1447 + --color: string # When to colorize output (always, never, debug, auto)
1709 1448 --quiet # Silence non-primary command output
1710 1449 --no-pager # Disable the pager
1711 1450 --config: string # Additional configuration options (can be repeated)
1714 1453 --help(-h) # Print help (see more with '--help')
1717 - def "nu-complete jj git remote add color" [] {
1718 - [ "always" "never" "debug" "auto" ]
1721 1456 # Add a Git remote
1722 1457 export extern "jj git remote add" [
1723 1458 remote: string # The remote's name
1724 - url: string # The remote's URL or path
1459 + url: string # The remote's URL
1725 1460 --repository(-R): path # Path to repository to operate on
1726 1461 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1727 1462 --ignore-immutable # Allow rewriting immutable commits
1728 1463 --at-operation: string # Operation to load the repo at
1729 1464 --at-op: string # Operation to load the repo at
1730 1465 --debug # Enable debug logging
1731 - --color: string@"nu-complete jj git remote add color" # When to colorize output
1466 + --color: string # When to colorize output (always, never, debug, auto)
1732 1467 --quiet # Silence non-primary command output
1733 1468 --no-pager # Disable the pager
1734 1469 --config: string # Additional configuration options (can be repeated)
1737 1472 --help(-h) # Print help (see more with '--help')
1740 - def "nu-complete jj git remote list color" [] {
1741 - [ "always" "never" "debug" "auto" ]
1744 1475 # List Git remotes
1745 1476 export extern "jj git remote list" [
1746 1477 --repository(-R): path # Path to repository to operate on
1749 1480 --at-operation: string # Operation to load the repo at
1750 1481 --at-op: string # Operation to load the repo at
1751 1482 --debug # Enable debug logging
1752 - --color: string@"nu-complete jj git remote list color" # When to colorize output
1483 + --color: string # When to colorize output (always, never, debug, auto)
1753 1484 --quiet # Silence non-primary command output
1754 1485 --no-pager # Disable the pager
1755 1486 --config: string # Additional configuration options (can be repeated)
1758 1489 --help(-h) # Print help (see more with '--help')
1761 - def "nu-complete jj git remote remove color" [] {
1762 - [ "always" "never" "debug" "auto" ]
1765 1492 # Remove a Git remote and forget its bookmarks
1766 1493 export extern "jj git remote remove" [
1767 1494 remote: string # The remote's name
1771 1498 --at-operation: string # Operation to load the repo at
1772 1499 --at-op: string # Operation to load the repo at
1773 1500 --debug # Enable debug logging
1774 - --color: string@"nu-complete jj git remote remove color" # When to colorize output
1501 + --color: string # When to colorize output (always, never, debug, auto)
1775 1502 --quiet # Silence non-primary command output
1776 1503 --no-pager # Disable the pager
1777 1504 --config: string # Additional configuration options (can be repeated)
1780 1507 --help(-h) # Print help (see more with '--help')
1783 - def "nu-complete jj git remote rename color" [] {
1784 - [ "always" "never" "debug" "auto" ]
1787 1510 # Rename a Git remote
1788 1511 export extern "jj git remote rename" [
1789 1512 old: string # The name of an existing remote
1794 1517 --at-operation: string # Operation to load the repo at
1795 1518 --at-op: string # Operation to load the repo at
1796 1519 --debug # Enable debug logging
1797 - --color: string@"nu-complete jj git remote rename color" # When to colorize output
1520 + --color: string # When to colorize output (always, never, debug, auto)
1798 1521 --quiet # Silence non-primary command output
1799 1522 --no-pager # Disable the pager
1800 1523 --config: string # Additional configuration options (can be repeated)
1803 1526 --help(-h) # Print help (see more with '--help')
1806 - def "nu-complete jj git remote set-url color" [] {
1807 - [ "always" "never" "debug" "auto" ]
1810 1529 # Set the URL of a Git remote
1811 1530 export extern "jj git remote set-url" [
1812 1531 remote: string # The remote's name
1813 - url: string # The desired URL or path for `remote`
1532 + url: string # The desired url for `remote`
1814 1533 --repository(-R): path # Path to repository to operate on
1815 1534 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1816 1535 --ignore-immutable # Allow rewriting immutable commits
1817 1536 --at-operation: string # Operation to load the repo at
1818 1537 --at-op: string # Operation to load the repo at
1819 1538 --debug # Enable debug logging
1820 - --color: string@"nu-complete jj git remote set-url color" # When to colorize output
1539 + --color: string # When to colorize output (always, never, debug, auto)
1821 1540 --quiet # Silence non-primary command output
1822 1541 --no-pager # Disable the pager
1823 1542 --config: string # Additional configuration options (can be repeated)
1826 1545 --help(-h) # Print help (see more with '--help')
1829 - def "nu-complete jj git root color" [] {
1830 - [ "always" "never" "debug" "auto" ]
1833 - # Show the underlying Git directory of a repository using the Git backend
1834 - export extern "jj git root" [
1548 + # FOR INTERNAL USE ONLY Interact with git submodules
1549 + export extern "jj git submodule" [
1835 1550 --repository(-R): path # Path to repository to operate on
1836 1551 --ignore-working-copy # Don't snapshot the working copy, and don't update it
1837 1552 --ignore-immutable # Allow rewriting immutable commits
1838 1553 --at-operation: string # Operation to load the repo at
1839 1554 --at-op: string # Operation to load the repo at
1840 1555 --debug # Enable debug logging
1841 - --color: string@"nu-complete jj git root color" # When to colorize output
1556 + --color: string # When to colorize output (always, never, debug, auto)
1557 + --quiet # Silence non-primary command output
1558 + --no-pager # Disable the pager
1559 + --config: string # Additional configuration options (can be repeated)
1560 + --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
1561 + --config-file: path # Additional configuration files (can be repeated)
1562 + --help(-h) # Print help (see more with '--help')
1565 + # Print the relevant contents from .gitmodules. For debugging purposes only
1566 + export extern "jj git submodule print-gitmodules" [
1567 + --revisions(-r): string # Read .gitmodules from the given revision
1568 + --repository(-R): path # Path to repository to operate on
1569 + --ignore-working-copy # Don't snapshot the working copy, and don't update it
1570 + --ignore-immutable # Allow rewriting immutable commits
1571 + --at-operation: string # Operation to load the repo at
1572 + --at-op: string # Operation to load the repo at
1573 + --debug # Enable debug logging
1574 + --color: string # When to colorize output (always, never, debug, auto)
1842 1575 --quiet # Silence non-primary command output
1843 1576 --no-pager # Disable the pager
1844 1577 --config: string # Additional configuration options (can be repeated)
1851 1584 [ "bookmarks" "config" "filesets" "glossary" "revsets" "templates" "tutorial" ]
1854 - def "nu-complete jj help color" [] {
1855 - [ "always" "never" "debug" "auto" ]
1858 1587 # Print this message or the help of the given subcommand(s)
1859 1588 export extern "jj help" [
1860 1589 ...command: string # Print help for the subcommand(s)
1865 1594 --at-operation: string # Operation to load the repo at
1866 1595 --at-op: string # Operation to load the repo at
1867 1596 --debug # Enable debug logging
1868 - --color: string@"nu-complete jj help color" # When to colorize output
1597 + --color: string # When to colorize output (always, never, debug, auto)
1869 1598 --quiet # Silence non-primary command output
1870 1599 --no-pager # Disable the pager
1871 1600 --config: string # Additional configuration options (can be repeated)
1874 1603 --help(-h) # Print help (see more with '--help')
1877 - def "nu-complete jj interdiff color" [] {
1878 - [ "always" "never" "debug" "auto" ]
1606 + # Create a new repo in the given directory
1607 + export extern "jj init" [
1608 + destination?: path # The destination directory
1609 + --git # DEPRECATED: Use `jj git init` Use the Git backend, creating a jj repo backed by a Git repo
1610 + --git-repo: path # DEPRECATED: Use `jj git init` Path to a git repo the jj repo will be backed by
1611 + --repository(-R): path # Path to repository to operate on
1612 + --ignore-working-copy # Don't snapshot the working copy, and don't update it
1613 + --ignore-immutable # Allow rewriting immutable commits
1614 + --at-operation: string # Operation to load the repo at
1615 + --at-op: string # Operation to load the repo at
1616 + --debug # Enable debug logging
1617 + --color: string # When to colorize output (always, never, debug, auto)
1618 + --quiet # Silence non-primary command output
1619 + --no-pager # Disable the pager
1620 + --config: string # Additional configuration options (can be repeated)
1621 + --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
1622 + --config-file: path # Additional configuration files (can be repeated)
1623 + --help(-h) # Print help (see more with '--help')
1881 1626 # Compare the changes of two commits
1882 1627 export extern "jj interdiff" [
1899 1644 --at-operation: string # Operation to load the repo at
1900 1645 --at-op: string # Operation to load the repo at
1901 1646 --debug # Enable debug logging
1902 - --color: string@"nu-complete jj interdiff color" # When to colorize output
1647 + --color: string # When to colorize output (always, never, debug, auto)
1903 1648 --quiet # Silence non-primary command output
1904 1649 --no-pager # Disable the pager
1905 1650 --config: string # Additional configuration options (can be repeated)
1908 1653 --help(-h) # Print help (see more with '--help')
1911 - def "nu-complete jj log color" [] {
1912 - [ "always" "never" "debug" "auto" ]
1915 1656 # Show revision history
1916 1657 export extern "jj log" [
1917 1658 --revisions(-r): string # Which revisions to show
1918 1659 ...paths: path # Show revisions modifying the given paths
1919 - --limit(-n): string # Limit number of revisions to show
1920 1660 --reversed # Show revisions in the opposite order (older revisions first)
1661 + --limit(-n): string # Limit number of revisions to show
1662 + -l: string
1921 1663 --no-graph # Don't show the graph, show a flat list of revisions
1922 1664 --template(-T): string # Render each revision using the given template
1923 1665 --patch(-p) # Show patch
1937 1679 --at-operation: string # Operation to load the repo at
1938 1680 --at-op: string # Operation to load the repo at
1939 1681 --debug # Enable debug logging
1940 - --color: string@"nu-complete jj log color" # When to colorize output
1682 + --color: string # When to colorize output (always, never, debug, auto)
1941 1683 --quiet # Silence non-primary command output
1942 1684 --no-pager # Disable the pager
1943 1685 --config: string # Additional configuration options (can be repeated)
1946 1688 --help(-h) # Print help (see more with '--help')
1949 - def "nu-complete jj new color" [] {
1950 - [ "always" "never" "debug" "auto" ]
1953 1691 # Create a new, empty change and (by default) edit it in the working copy
1954 1692 export extern "jj new" [
1955 1693 ...revisions: string # Parent(s) of the new change
1967 1705 --at-operation: string # Operation to load the repo at
1968 1706 --at-op: string # Operation to load the repo at
1969 1707 --debug # Enable debug logging
1970 - --color: string@"nu-complete jj new color" # When to colorize output
1708 + --color: string # When to colorize output (always, never, debug, auto)
1971 1709 --quiet # Silence non-primary command output
1972 1710 --no-pager # Disable the pager
1973 1711 --config: string # Additional configuration options (can be repeated)
1976 1714 --help(-h) # Print help (see more with '--help')
1979 - def "nu-complete jj next color" [] {
1980 - [ "always" "never" "debug" "auto" ]
1983 1717 # Move the working-copy commit to the child revision
1984 1718 export extern "jj next" [
1985 1719 offset?: string # How many revisions to move forward. Advances to the next child by default
1992 1726 --at-operation: string # Operation to load the repo at
1993 1727 --at-op: string # Operation to load the repo at
1994 1728 --debug # Enable debug logging
1995 - --color: string@"nu-complete jj next color" # When to colorize output
1729 + --color: string # When to colorize output (always, never, debug, auto)
1996 1730 --quiet # Silence non-primary command output
1997 1731 --no-pager # Disable the pager
1998 1732 --config: string # Additional configuration options (can be repeated)
2001 1735 --help(-h) # Print help (see more with '--help')
2004 - def "nu-complete jj operation color" [] {
2005 - [ "always" "never" "debug" "auto" ]
2008 1738 # Commands for working with the operation log
2009 1739 export extern "jj operation" [
2010 1740 --repository(-R): path # Path to repository to operate on
2013 1743 --at-operation: string # Operation to load the repo at
2014 1744 --at-op: string # Operation to load the repo at
2015 1745 --debug # Enable debug logging
2016 - --color: string@"nu-complete jj operation color" # When to colorize output
1746 + --color: string # When to colorize output (always, never, debug, auto)
2017 1747 --quiet # Silence non-primary command output
2018 1748 --no-pager # Disable the pager
2019 1749 --config: string # Additional configuration options (can be repeated)
2022 1752 --help(-h) # Print help (see more with '--help')
2025 - def "nu-complete jj operation abandon color" [] {
2026 - [ "always" "never" "debug" "auto" ]
2029 1755 # Abandon operation history
2030 1756 export extern "jj operation abandon" [
2031 1757 operation: string # The operation or operation range to abandon
2035 1761 --at-operation: string # Operation to load the repo at
2036 1762 --at-op: string # Operation to load the repo at
2037 1763 --debug # Enable debug logging
2038 - --color: string@"nu-complete jj operation abandon color" # When to colorize output
1764 + --color: string # When to colorize output (always, never, debug, auto)
2039 1765 --quiet # Silence non-primary command output
2040 1766 --no-pager # Disable the pager
2041 1767 --config: string # Additional configuration options (can be repeated)
2044 1770 --help(-h) # Print help (see more with '--help')
2047 - def "nu-complete jj operation diff color" [] {
2048 - [ "always" "never" "debug" "auto" ]
2051 1773 # Compare changes to the repository between two operations
2052 1774 export extern "jj operation diff" [
2053 1775 --operation: string # Show repository changes in this operation, compared to its parent
2072 1794 --at-operation: string # Operation to load the repo at
2073 1795 --at-op: string # Operation to load the repo at
2074 1796 --debug # Enable debug logging
2075 - --color: string@"nu-complete jj operation diff color" # When to colorize output
1797 + --color: string # When to colorize output (always, never, debug, auto)
2076 1798 --quiet # Silence non-primary command output
2077 1799 --no-pager # Disable the pager
2078 1800 --config: string # Additional configuration options (can be repeated)
2081 1803 --help(-h) # Print help (see more with '--help')
2084 - def "nu-complete jj operation log color" [] {
2085 - [ "always" "never" "debug" "auto" ]
2088 1806 # Show the operation log
2089 1807 export extern "jj operation log" [
2090 1808 --limit(-n): string # Limit number of operations to show
2091 - --reversed # Show operations in the opposite order (older operations first)
1809 + -l: string
2092 1810 --no-graph # Don't show the graph, show a flat list of operations
2093 1811 --template(-T): string # Render each operation using the given template
2094 - --op-diff(-d) # Show changes to the repository at each operation
1812 + --op-diff # Show changes to the repository at each operation
2095 1813 --patch(-p) # Show patch of modifications to changes (implies --op-diff)
2096 1814 --summary(-s) # For each path, show only whether it was modified, added, or deleted
2097 1815 --stat # Show a histogram of the changes
2109 1827 --at-operation: string # Operation to load the repo at
2110 1828 --at-op: string # Operation to load the repo at
2111 1829 --debug # Enable debug logging
2112 - --color: string@"nu-complete jj operation log color" # When to colorize output
1830 + --color: string # When to colorize output (always, never, debug, auto)
2113 1831 --quiet # Silence non-primary command output
2114 1832 --no-pager # Disable the pager
2115 1833 --config: string # Additional configuration options (can be repeated)
2122 1840 [ "repo" "remote-tracking" ]
2125 - def "nu-complete jj operation restore color" [] {
2126 - [ "always" "never" "debug" "auto" ]
2129 1843 # Create a new operation that restores the repo to an earlier state
2130 1844 export extern "jj operation restore" [
2131 1845 operation: string # The operation to restore to
2136 1850 --at-operation: string # Operation to load the repo at
2137 1851 --at-op: string # Operation to load the repo at
2138 1852 --debug # Enable debug logging
2139 - --color: string@"nu-complete jj operation restore color" # When to colorize output
1853 + --color: string # When to colorize output (always, never, debug, auto)
2140 1854 --quiet # Silence non-primary command output
2141 1855 --no-pager # Disable the pager
2142 1856 --config: string # Additional configuration options (can be repeated)
2145 1859 --help(-h) # Print help (see more with '--help')
2148 - def "nu-complete jj operation show color" [] {
2149 - [ "always" "never" "debug" "auto" ]
2152 1862 # Show changes to the repository in an operation
2153 1863 export extern "jj operation show" [
2154 1864 operation?: string # Show repository changes in this operation, compared to its parent(s)
2170 1880 --at-operation: string # Operation to load the repo at
2171 1881 --at-op: string # Operation to load the repo at
2172 1882 --debug # Enable debug logging
2173 - --color: string@"nu-complete jj operation show color" # When to colorize output
1883 + --color: string # When to colorize output (always, never, debug, auto)
2174 1884 --quiet # Silence non-primary command output
2175 1885 --no-pager # Disable the pager
2176 1886 --config: string # Additional configuration options (can be repeated)
2183 1893 [ "repo" "remote-tracking" ]
2186 - def "nu-complete jj operation undo color" [] {
2187 - [ "always" "never" "debug" "auto" ]
2190 1896 # Create a new operation that undoes an earlier operation
2191 1897 export extern "jj operation undo" [
2192 1898 operation?: string # The operation to undo
2197 1903 --at-operation: string # Operation to load the repo at
2198 1904 --at-op: string # Operation to load the repo at
2199 1905 --debug # Enable debug logging
2200 - --color: string@"nu-complete jj operation undo color" # When to colorize output
1906 + --color: string # When to colorize output (always, never, debug, auto)
2201 1907 --quiet # Silence non-primary command output
2202 1908 --no-pager # Disable the pager
2203 1909 --config: string # Additional configuration options (can be repeated)
2206 1912 --help(-h) # Print help (see more with '--help')
2209 - def "nu-complete jj parallelize color" [] {
2210 - [ "always" "never" "debug" "auto" ]
2213 1915 # Parallelize revisions by making them siblings
2214 1916 export extern "jj parallelize" [
2215 1917 ...revisions: string # Revisions to parallelize
2219 1921 --at-operation: string # Operation to load the repo at
2220 1922 --at-op: string # Operation to load the repo at
2221 1923 --debug # Enable debug logging
2222 - --color: string@"nu-complete jj parallelize color" # When to colorize output
1924 + --color: string # When to colorize output (always, never, debug, auto)
2223 1925 --quiet # Silence non-primary command output
2224 1926 --no-pager # Disable the pager
2225 1927 --config: string # Additional configuration options (can be repeated)
2228 1930 --help(-h) # Print help (see more with '--help')
2231 - def "nu-complete jj prev color" [] {
2232 - [ "always" "never" "debug" "auto" ]
2235 1933 # Change the working copy revision relative to the parent revision
2236 1934 export extern "jj prev" [
2237 1935 offset?: string # How many revisions to move backward. Moves to the parent by default
2244 1942 --at-operation: string # Operation to load the repo at
2245 1943 --at-op: string # Operation to load the repo at
2246 1944 --debug # Enable debug logging
2247 - --color: string@"nu-complete jj prev color" # When to colorize output
1945 + --color: string # When to colorize output (always, never, debug, auto)
2248 1946 --quiet # Silence non-primary command output
2249 1947 --no-pager # Disable the pager
2250 1948 --config: string # Additional configuration options (can be repeated)
2253 1951 --help(-h) # Print help (see more with '--help')
2256 - def "nu-complete jj rebase color" [] {
2257 - [ "always" "never" "debug" "auto" ]
2260 1954 # Move revisions to different parent(s)
2261 1955 export extern "jj rebase" [
2262 1956 --branch(-b): string # Rebase the whole branch relative to destination's ancestors (can be repeated)
2275 1969 --at-operation: string # Operation to load the repo at
2276 1970 --at-op: string # Operation to load the repo at
2277 1971 --debug # Enable debug logging
2278 - --color: string@"nu-complete jj rebase color" # When to colorize output
1972 + --color: string # When to colorize output (always, never, debug, auto)
2279 1973 --quiet # Silence non-primary command output
2280 1974 --no-pager # Disable the pager
2281 1975 --config: string # Additional configuration options (can be repeated)
2284 1978 --help(-h) # Print help (see more with '--help')
2287 - def "nu-complete jj resolve color" [] {
2288 - [ "always" "never" "debug" "auto" ]
2291 - # Resolve conflicted files with an external merge tool
1981 + # Resolve a conflicted file with an external merge tool
2292 1982 export extern "jj resolve" [
2293 1983 --revision(-r): string
2294 - --list(-l) # Instead of resolving conflicts, list all the conflicts
1984 + --list(-l) # Instead of resolving one conflict, list all the conflicts
2295 1985 --tool: string # Specify 3-way merge tool to be used
2296 - ...paths: path # Only resolve conflicts in these paths. You can use the `--list` argument to find paths to use here
1986 + ...paths: path # Restrict to these paths when searching for a conflict to resolve. We will attempt to resolve the first conflict we can find. You can use the `--list` argument to find paths to use here
2297 1987 --repository(-R): path # Path to repository to operate on
2298 1988 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2299 1989 --ignore-immutable # Allow rewriting immutable commits
2300 1990 --at-operation: string # Operation to load the repo at
2301 1991 --at-op: string # Operation to load the repo at
2302 1992 --debug # Enable debug logging
2303 - --color: string@"nu-complete jj resolve color" # When to colorize output
1993 + --color: string # When to colorize output (always, never, debug, auto)
2304 1994 --quiet # Silence non-primary command output
2305 1995 --no-pager # Disable the pager
2306 1996 --config: string # Additional configuration options (can be repeated)
2309 1999 --help(-h) # Print help (see more with '--help')
2312 - def "nu-complete jj restore color" [] {
2313 - [ "always" "never" "debug" "auto" ]
2316 2002 # Restore paths from another revision
2317 2003 export extern "jj restore" [
2318 2004 ...paths: path # Restore only these paths (instead of all paths)
2319 2005 --from(-f): string # Revision to restore from (source)
2320 - --into(-t): string # Revision to restore into (destination)
2321 - --to: string # Revision to restore into (destination)
2006 + --to(-t): string # Revision to restore into (destination)
2322 2007 --changes-in(-c): string # Undo the changes in a revision as compared to the merge of its parents
2323 2008 --revision(-r): string # Prints an error. DO NOT USE
2324 - --interactive(-i) # Interactively choose which parts to restore
2325 - --tool: string # Specify diff editor to be used (implies --interactive)
2326 2009 --restore-descendants # Preserve the content (not the diff) when rebasing descendants
2327 2010 --repository(-R): path # Path to repository to operate on
2328 2011 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2330 2013 --at-operation: string # Operation to load the repo at
2331 2014 --at-op: string # Operation to load the repo at
2332 2015 --debug # Enable debug logging
2333 - --color: string@"nu-complete jj restore color" # When to colorize output
2016 + --color: string # When to colorize output (always, never, debug, auto)
2334 2017 --quiet # Silence non-primary command output
2335 2018 --no-pager # Disable the pager
2336 2019 --config: string # Additional configuration options (can be repeated)
2339 2022 --help(-h) # Print help (see more with '--help')
2342 - def "nu-complete jj revert color" [] {
2343 - [ "always" "never" "debug" "auto" ]
2346 - # Apply the reverse of the given revision(s)
2025 + # A dummy command that accepts any arguments
2347 2026 export extern "jj revert" [
2348 - --revisions(-r): string # The revision(s) to apply the reverse of
2349 - --destination(-d): string # The revision(s) to apply the reverse changes on top of
2350 - --insert-after(-A): string # The revision(s) to insert the reverse changes after (can be repeated to create a merge commit)
2351 - --after: string # The revision(s) to insert the reverse changes after (can be repeated to create a merge commit)
2352 - --insert-before(-B): string # The revision(s) to insert the reverse changes before (can be repeated to create a merge commit)
2353 - --before: string # The revision(s) to insert the reverse changes before (can be repeated to create a merge commit)
2027 + ..._args: string
2354 2028 --repository(-R): path # Path to repository to operate on
2355 2029 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2356 2030 --ignore-immutable # Allow rewriting immutable commits
2357 2031 --at-operation: string # Operation to load the repo at
2358 2032 --at-op: string # Operation to load the repo at
2359 2033 --debug # Enable debug logging
2360 - --color: string@"nu-complete jj revert color" # When to colorize output
2034 + --color: string # When to colorize output (always, never, debug, auto)
2361 2035 --quiet # Silence non-primary command output
2362 2036 --no-pager # Disable the pager
2363 2037 --config: string # Additional configuration options (can be repeated)
2366 2040 --help(-h) # Print help (see more with '--help')
2369 - def "nu-complete jj root color" [] {
2370 - [ "always" "never" "debug" "auto" ]
2373 - # Show the current workspace root directory (shortcut for `jj workspace root`)
2043 + # Show the current workspace root directory
2374 2044 export extern "jj root" [
2375 2045 --repository(-R): path # Path to repository to operate on
2376 2046 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2378 2048 --at-operation: string # Operation to load the repo at
2379 2049 --at-op: string # Operation to load the repo at
2380 2050 --debug # Enable debug logging
2381 - --color: string@"nu-complete jj root color" # When to colorize output
2051 + --color: string # When to colorize output (always, never, debug, auto)
2382 2052 --quiet # Silence non-primary command output
2383 2053 --no-pager # Disable the pager
2384 2054 --config: string # Additional configuration options (can be repeated)
2387 2057 --help(-h) # Print help (see more with '--help')
2390 - def "nu-complete jj run color" [] {
2391 - [ "always" "never" "debug" "auto" ]
2394 2060 # (**Stub**, does not work yet) Run a command across a set of revisions.
2395 2061 export extern "jj run" [
2396 2062 shell_command: string # The command to run across all selected revisions
2403 2069 --at-operation: string # Operation to load the repo at
2404 2070 --at-op: string # Operation to load the repo at
2405 2071 --debug # Enable debug logging
2406 - --color: string@"nu-complete jj run color" # When to colorize output
2072 + --color: string # When to colorize output (always, never, debug, auto)
2407 2073 --quiet # Silence non-primary command output
2408 2074 --no-pager # Disable the pager
2409 2075 --config: string # Additional configuration options (can be repeated)
2412 2078 --help(-h) # Print help (see more with '--help')
2415 - def "nu-complete jj show color" [] {
2416 - [ "always" "never" "debug" "auto" ]
2419 2081 # Show commit description and changes in a revision
2420 2082 export extern "jj show" [
2421 2083 revision?: string # Show changes in this revision, compared to its parent(s)
2437 2099 --at-operation: string # Operation to load the repo at
2438 2100 --at-op: string # Operation to load the repo at
2439 2101 --debug # Enable debug logging
2440 - --color: string@"nu-complete jj show color" # When to colorize output
2102 + --color: string # When to colorize output (always, never, debug, auto)
2441 2103 --quiet # Silence non-primary command output
2442 2104 --no-pager # Disable the pager
2443 2105 --config: string # Additional configuration options (can be repeated)
2446 2108 --help(-h) # Print help (see more with '--help')
2449 - def "nu-complete jj sign color" [] {
2450 - [ "always" "never" "debug" "auto" ]
2453 - # Cryptographically sign a revision
2454 - export extern "jj sign" [
2455 - --revisions(-r): string # What revision(s) to sign
2456 - --key: string # The key used for signing
2457 - --repository(-R): path # Path to repository to operate on
2458 - --ignore-working-copy # Don't snapshot the working copy, and don't update it
2459 - --ignore-immutable # Allow rewriting immutable commits
2460 - --at-operation: string # Operation to load the repo at
2461 - --at-op: string # Operation to load the repo at
2462 - --debug # Enable debug logging
2463 - --color: string@"nu-complete jj sign color" # When to colorize output
2464 - --quiet # Silence non-primary command output
2465 - --no-pager # Disable the pager
2466 - --config: string # Additional configuration options (can be repeated)
2467 - --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
2468 - --config-file: path # Additional configuration files (can be repeated)
2469 - --help(-h) # Print help (see more with '--help')
2472 - def "nu-complete jj simplify-parents color" [] {
2473 - [ "always" "never" "debug" "auto" ]
2476 2111 # Simplify parent edges for the specified revision(s)
2477 2112 export extern "jj simplify-parents" [
2478 2113 --source(-s): string # Simplify specified revision(s) together with their trees of descendants (can be repeated)
2483 2118 --at-operation: string # Operation to load the repo at
2484 2119 --at-op: string # Operation to load the repo at
2485 2120 --debug # Enable debug logging
2486 - --color: string@"nu-complete jj simplify-parents color" # When to colorize output
2121 + --color: string # When to colorize output (always, never, debug, auto)
2487 2122 --quiet # Silence non-primary command output
2488 2123 --no-pager # Disable the pager
2489 2124 --config: string # Additional configuration options (can be repeated)
2492 2127 --help(-h) # Print help (see more with '--help')
2495 - def "nu-complete jj sparse color" [] {
2496 - [ "always" "never" "debug" "auto" ]
2499 2130 # Manage which paths from the working-copy commit are present in the working copy
2500 2131 export extern "jj sparse" [
2501 2132 --repository(-R): path # Path to repository to operate on
2504 2135 --at-operation: string # Operation to load the repo at
2505 2136 --at-op: string # Operation to load the repo at
2506 2137 --debug # Enable debug logging
2507 - --color: string@"nu-complete jj sparse color" # When to colorize output
2138 + --color: string # When to colorize output (always, never, debug, auto)
2508 2139 --quiet # Silence non-primary command output
2509 2140 --no-pager # Disable the pager
2510 2141 --config: string # Additional configuration options (can be repeated)
2513 2144 --help(-h) # Print help (see more with '--help')
2516 - def "nu-complete jj sparse edit color" [] {
2517 - [ "always" "never" "debug" "auto" ]
2520 2147 # Start an editor to update the patterns that are present in the working copy
2521 2148 export extern "jj sparse edit" [
2522 2149 --repository(-R): path # Path to repository to operate on
2525 2152 --at-operation: string # Operation to load the repo at
2526 2153 --at-op: string # Operation to load the repo at
2527 2154 --debug # Enable debug logging
2528 - --color: string@"nu-complete jj sparse edit color" # When to colorize output
2155 + --color: string # When to colorize output (always, never, debug, auto)
2529 2156 --quiet # Silence non-primary command output
2530 2157 --no-pager # Disable the pager
2531 2158 --config: string # Additional configuration options (can be repeated)
2534 2161 --help(-h) # Print help (see more with '--help')
2537 - def "nu-complete jj sparse list color" [] {
2538 - [ "always" "never" "debug" "auto" ]
2541 2164 # List the patterns that are currently present in the working copy
2542 2165 export extern "jj sparse list" [
2543 2166 --repository(-R): path # Path to repository to operate on
2546 2169 --at-operation: string # Operation to load the repo at
2547 2170 --at-op: string # Operation to load the repo at
2548 2171 --debug # Enable debug logging
2549 - --color: string@"nu-complete jj sparse list color" # When to colorize output
2172 + --color: string # When to colorize output (always, never, debug, auto)
2550 2173 --quiet # Silence non-primary command output
2551 2174 --no-pager # Disable the pager
2552 2175 --config: string # Additional configuration options (can be repeated)
2555 2178 --help(-h) # Print help (see more with '--help')
2558 - def "nu-complete jj sparse reset color" [] {
2559 - [ "always" "never" "debug" "auto" ]
2562 2181 # Reset the patterns to include all files in the working copy
2563 2182 export extern "jj sparse reset" [
2564 2183 --repository(-R): path # Path to repository to operate on
2567 2186 --at-operation: string # Operation to load the repo at
2568 2187 --at-op: string # Operation to load the repo at
2569 2188 --debug # Enable debug logging
2570 - --color: string@"nu-complete jj sparse reset color" # When to colorize output
2189 + --color: string # When to colorize output (always, never, debug, auto)
2571 2190 --quiet # Silence non-primary command output
2572 2191 --no-pager # Disable the pager
2573 2192 --config: string # Additional configuration options (can be repeated)
2576 2195 --help(-h) # Print help (see more with '--help')
2579 - def "nu-complete jj sparse set color" [] {
2580 - [ "always" "never" "debug" "auto" ]
2583 2198 # Update the patterns that are present in the working copy
2584 2199 export extern "jj sparse set" [
2585 2200 --add: path # Patterns to add to the working copy
2591 2206 --at-operation: string # Operation to load the repo at
2592 2207 --at-op: string # Operation to load the repo at
2593 2208 --debug # Enable debug logging
2594 - --color: string@"nu-complete jj sparse set color" # When to colorize output
2209 + --color: string # When to colorize output (always, never, debug, auto)
2595 2210 --quiet # Silence non-primary command output
2596 2211 --no-pager # Disable the pager
2597 2212 --config: string # Additional configuration options (can be repeated)
2600 2215 --help(-h) # Print help (see more with '--help')
2603 - def "nu-complete jj split color" [] {
2604 - [ "always" "never" "debug" "auto" ]
2607 2218 # Split a revision in two
2608 2219 export extern "jj split" [
2609 2220 --interactive(-i) # Interactively choose which parts to split
2617 2228 --at-operation: string # Operation to load the repo at
2618 2229 --at-op: string # Operation to load the repo at
2619 2230 --debug # Enable debug logging
2620 - --color: string@"nu-complete jj split color" # When to colorize output
2231 + --color: string # When to colorize output (always, never, debug, auto)
2621 2232 --quiet # Silence non-primary command output
2622 2233 --no-pager # Disable the pager
2623 2234 --config: string # Additional configuration options (can be repeated)
2626 2237 --help(-h) # Print help (see more with '--help')
2629 - def "nu-complete jj squash color" [] {
2630 - [ "always" "never" "debug" "auto" ]
2633 2240 # Move changes from a revision into another revision
2634 2241 export extern "jj squash" [
2635 2242 --revision(-r): string # Revision to squash into its parent (default: @)
2648 2255 --at-operation: string # Operation to load the repo at
2649 2256 --at-op: string # Operation to load the repo at
2650 2257 --debug # Enable debug logging
2651 - --color: string@"nu-complete jj squash color" # When to colorize output
2258 + --color: string # When to colorize output (always, never, debug, auto)
2652 2259 --quiet # Silence non-primary command output
2653 2260 --no-pager # Disable the pager
2654 2261 --config: string # Additional configuration options (can be repeated)
2657 2264 --help(-h) # Print help (see more with '--help')
2660 - def "nu-complete jj status color" [] {
2661 - [ "always" "never" "debug" "auto" ]
2664 2267 # Show high-level repo status
2665 2268 export extern "jj status" [
2666 2269 ...paths: path # Restrict the status display to these paths
2670 2273 --at-operation: string # Operation to load the repo at
2671 2274 --at-op: string # Operation to load the repo at
2672 2275 --debug # Enable debug logging
2673 - --color: string@"nu-complete jj status color" # When to colorize output
2276 + --color: string # When to colorize output (always, never, debug, auto)
2674 2277 --quiet # Silence non-primary command output
2675 2278 --no-pager # Disable the pager
2676 2279 --config: string # Additional configuration options (can be repeated)
2679 2282 --help(-h) # Print help (see more with '--help')
2682 - def "nu-complete jj tag color" [] {
2683 - [ "always" "never" "debug" "auto" ]
2686 2285 # Manage tags
2687 2286 export extern "jj tag" [
2688 2287 --repository(-R): path # Path to repository to operate on
2691 2290 --at-operation: string # Operation to load the repo at
2692 2291 --at-op: string # Operation to load the repo at
2693 2292 --debug # Enable debug logging
2694 - --color: string@"nu-complete jj tag color" # When to colorize output
2293 + --color: string # When to colorize output (always, never, debug, auto)
2695 2294 --quiet # Silence non-primary command output
2696 2295 --no-pager # Disable the pager
2697 2296 --config: string # Additional configuration options (can be repeated)
2700 2299 --help(-h) # Print help (see more with '--help')
2703 - def "nu-complete jj tag list color" [] {
2704 - [ "always" "never" "debug" "auto" ]
2707 2302 # List tags
2708 2303 export extern "jj tag list" [
2709 2304 ...names: string # Show tags whose local name matches
2714 2309 --at-operation: string # Operation to load the repo at
2715 2310 --at-op: string # Operation to load the repo at
2716 2311 --debug # Enable debug logging
2717 - --color: string@"nu-complete jj tag list color" # When to colorize output
2312 + --color: string # When to colorize output (always, never, debug, auto)
2718 2313 --quiet # Silence non-primary command output
2719 2314 --no-pager # Disable the pager
2720 2315 --config: string # Additional configuration options (can be repeated)
2723 2318 --help(-h) # Print help (see more with '--help')
2726 - def "nu-complete jj util color" [] {
2727 - [ "always" "never" "debug" "auto" ]
2730 2321 # Infrequently used commands such as for generating shell completions
2731 2322 export extern "jj util" [
2732 2323 --repository(-R): path # Path to repository to operate on
2735 2326 --at-operation: string # Operation to load the repo at
2736 2327 --at-op: string # Operation to load the repo at
2737 2328 --debug # Enable debug logging
2738 - --color: string@"nu-complete jj util color" # When to colorize output
2329 + --color: string # When to colorize output (always, never, debug, auto)
2739 2330 --quiet # Silence non-primary command output
2740 2331 --no-pager # Disable the pager
2741 2332 --config: string # Additional configuration options (can be repeated)
2748 2339 [ "bash" "elvish" "fish" "nushell" "power-shell" "zsh" ]
2751 - def "nu-complete jj util completion color" [] {
2752 - [ "always" "never" "debug" "auto" ]
2755 2342 # Print a command-line-completion script
2756 2343 export extern "jj util completion" [
2757 2344 shell?: string@"nu-complete jj util completion shell"
2764 2351 --at-operation: string # Operation to load the repo at
2765 2352 --at-op: string # Operation to load the repo at
2766 2353 --debug # Enable debug logging
2767 - --color: string@"nu-complete jj util completion color" # When to colorize output
2354 + --color: string # When to colorize output (always, never, debug, auto)
2768 2355 --quiet # Silence non-primary command output
2769 2356 --no-pager # Disable the pager
2770 2357 --config: string # Additional configuration options (can be repeated)
2773 2360 --help(-h) # Print help (see more with '--help')
2776 - def "nu-complete jj util config-schema color" [] {
2777 - [ "always" "never" "debug" "auto" ]
2780 2363 # Print the JSON schema for the jj TOML config format
2781 2364 export extern "jj util config-schema" [
2782 2365 --repository(-R): path # Path to repository to operate on
2785 2368 --at-operation: string # Operation to load the repo at
2786 2369 --at-op: string # Operation to load the repo at
2787 2370 --debug # Enable debug logging
2788 - --color: string@"nu-complete jj util config-schema color" # When to colorize output
2371 + --color: string # When to colorize output (always, never, debug, auto)
2789 2372 --quiet # Silence non-primary command output
2790 2373 --no-pager # Disable the pager
2791 2374 --config: string # Additional configuration options (can be repeated)
2794 2377 --help(-h) # Print help (see more with '--help')
2797 - def "nu-complete jj util exec color" [] {
2798 - [ "always" "never" "debug" "auto" ]
2801 2380 # Execute an external command via jj
2802 2381 export extern "jj util exec" [
2803 2382 command: string # External command to execute
2808 2387 --at-operation: string # Operation to load the repo at
2809 2388 --at-op: string # Operation to load the repo at
2810 2389 --debug # Enable debug logging
2811 - --color: string@"nu-complete jj util exec color" # When to colorize output
2390 + --color: string # When to colorize output (always, never, debug, auto)
2812 2391 --quiet # Silence non-primary command output
2813 2392 --no-pager # Disable the pager
2814 2393 --config: string # Additional configuration options (can be repeated)
2817 2396 --help(-h) # Print help (see more with '--help')
2820 - def "nu-complete jj util gc color" [] {
2821 - [ "always" "never" "debug" "auto" ]
2824 2399 # Run backend-dependent garbage collection
2825 2400 export extern "jj util gc" [
2826 2401 --expire: string # Time threshold
2830 2405 --at-operation: string # Operation to load the repo at
2831 2406 --at-op: string # Operation to load the repo at
2832 2407 --debug # Enable debug logging
2833 - --color: string@"nu-complete jj util gc color" # When to colorize output
2408 + --color: string # When to colorize output (always, never, debug, auto)
2834 2409 --quiet # Silence non-primary command output
2835 2410 --no-pager # Disable the pager
2836 2411 --config: string # Additional configuration options (can be repeated)
2839 2414 --help(-h) # Print help (see more with '--help')
2842 - def "nu-complete jj util install-man-pages color" [] {
2843 - [ "always" "never" "debug" "auto" ]
2846 - # Install Jujutsu's manpages to the provided path
2847 - export extern "jj util install-man-pages" [
2848 - path: path # The path where manpages will installed. An example path might be `/usr/share/man`. The provided path will be appended with `man1`, etc., as appropriate
2417 + # Print a ROFF (manpage)
2418 + export extern "jj util mangen" [
2849 2419 --repository(-R): path # Path to repository to operate on
2850 2420 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2851 2421 --ignore-immutable # Allow rewriting immutable commits
2852 2422 --at-operation: string # Operation to load the repo at
2853 2423 --at-op: string # Operation to load the repo at
2854 2424 --debug # Enable debug logging
2855 - --color: string@"nu-complete jj util install-man-pages color" # When to colorize output
2425 + --color: string # When to colorize output (always, never, debug, auto)
2856 2426 --quiet # Silence non-primary command output
2857 2427 --no-pager # Disable the pager
2858 2428 --config: string # Additional configuration options (can be repeated)
2861 2431 --help(-h) # Print help (see more with '--help')
2864 - def "nu-complete jj util markdown-help color" [] {
2865 - [ "always" "never" "debug" "auto" ]
2868 2434 # Print the CLI help for all subcommands in Markdown
2869 2435 export extern "jj util markdown-help" [
2870 2436 --repository(-R): path # Path to repository to operate on
2873 2439 --at-operation: string # Operation to load the repo at
2874 2440 --at-op: string # Operation to load the repo at
2875 2441 --debug # Enable debug logging
2876 - --color: string@"nu-complete jj util markdown-help color" # When to colorize output
2442 + --color: string # When to colorize output (always, never, debug, auto)
2877 2443 --quiet # Silence non-primary command output
2878 2444 --no-pager # Disable the pager
2879 2445 --config: string # Additional configuration options (can be repeated)
2886 2452 [ "repo" "remote-tracking" ]
2889 - def "nu-complete jj undo color" [] {
2890 - [ "always" "never" "debug" "auto" ]
2893 2455 # Undo an operation (shortcut for `jj op undo`)
2894 2456 export extern "jj undo" [
2895 2457 operation?: string # The operation to undo
2900 2462 --at-operation: string # Operation to load the repo at
2901 2463 --at-op: string # Operation to load the repo at
2902 2464 --debug # Enable debug logging
2903 - --color: string@"nu-complete jj undo color" # When to colorize output
2465 + --color: string # When to colorize output (always, never, debug, auto)
2904 2466 --quiet # Silence non-primary command output
2905 2467 --no-pager # Disable the pager
2906 2468 --config: string # Additional configuration options (can be repeated)
2909 2471 --help(-h) # Print help (see more with '--help')
2912 - def "nu-complete jj unsign color" [] {
2913 - [ "always" "never" "debug" "auto" ]
2916 - # Drop a cryptographic signature
2917 - export extern "jj unsign" [
2918 - --revisions(-r): string # What revision(s) to unsign
2474 + # Move changes from a revision's parent into the revision
2475 + export extern "jj unsquash" [
2476 + --revision(-r): string
2477 + --interactive(-i) # Interactively choose which parts to unsquash
2478 + --tool: string # Specify diff editor to be used (implies --interactive)
2919 2479 --repository(-R): path # Path to repository to operate on
2920 2480 --ignore-working-copy # Don't snapshot the working copy, and don't update it
2921 2481 --ignore-immutable # Allow rewriting immutable commits
2922 2482 --at-operation: string # Operation to load the repo at
2923 2483 --at-op: string # Operation to load the repo at
2924 2484 --debug # Enable debug logging
2925 - --color: string@"nu-complete jj unsign color" # When to colorize output
2485 + --color: string # When to colorize output (always, never, debug, auto)
2926 2486 --quiet # Silence non-primary command output
2927 2487 --no-pager # Disable the pager
2928 2488 --config: string # Additional configuration options (can be repeated)
2931 2491 --help(-h) # Print help (see more with '--help')
2934 - def "nu-complete jj version color" [] {
2935 - [ "always" "never" "debug" "auto" ]
2494 + # Stop tracking specified paths in the working copy
2495 + export extern "jj untrack" [
2496 + ...paths: path # Paths to untrack. They must already be ignored
2497 + --repository(-R): path # Path to repository to operate on
2498 + --ignore-working-copy # Don't snapshot the working copy, and don't update it
2499 + --ignore-immutable # Allow rewriting immutable commits
2500 + --at-operation: string # Operation to load the repo at
2501 + --at-op: string # Operation to load the repo at
2502 + --debug # Enable debug logging
2503 + --color: string # When to colorize output (always, never, debug, auto)
2504 + --quiet # Silence non-primary command output
2505 + --no-pager # Disable the pager
2506 + --config: string # Additional configuration options (can be repeated)
2507 + --config-toml: string # Additional configuration options (can be repeated) (DEPRECATED)
2508 + --config-file: path # Additional configuration files (can be repeated)
2509 + --help(-h) # Print help (see more with '--help')
2938 2512 # Display version information
2939 2513 export extern "jj version" [
2943 2517 --at-operation: string # Operation to load the repo at
2944 2518 --at-op: string # Operation to load the repo at
2945 2519 --debug # Enable debug logging
2946 - --color: string@"nu-complete jj version color" # When to colorize output
2520 + --color: string # When to colorize output (always, never, debug, auto)
2947 2521 --quiet # Silence non-primary command output
2948 2522 --no-pager # Disable the pager
2949 2523 --config: string # Additional configuration options (can be repeated)
2952 2526 --help(-h) # Print help (see more with '--help')
2955 - def "nu-complete jj workspace color" [] {
2956 - [ "always" "never" "debug" "auto" ]
2959 2529 # Commands for working with workspaces
2960 2530 export extern "jj workspace" [
2961 2531 --repository(-R): path # Path to repository to operate on
2964 2534 --at-operation: string # Operation to load the repo at
2965 2535 --at-op: string # Operation to load the repo at
2966 2536 --debug # Enable debug logging
2967 - --color: string@"nu-complete jj workspace color" # When to colorize output
2537 + --color: string # When to colorize output (always, never, debug, auto)
2968 2538 --quiet # Silence non-primary command output
2969 2539 --no-pager # Disable the pager
2970 2540 --config: string # Additional configuration options (can be repeated)
2977 2547 [ "copy" "full" "empty" ]
2980 - def "nu-complete jj workspace add color" [] {
2981 - [ "always" "never" "debug" "auto" ]
2984 2550 # Add a workspace
2985 2551 export extern "jj workspace add" [
2986 2552 destination: string # Where to create the new workspace
2993 2559 --at-operation: string # Operation to load the repo at
2994 2560 --at-op: string # Operation to load the repo at
2995 2561 --debug # Enable debug logging
2996 - --color: string@"nu-complete jj workspace add color" # When to colorize output
2562 + --color: string # When to colorize output (always, never, debug, auto)
2997 2563 --quiet # Silence non-primary command output
2998 2564 --no-pager # Disable the pager
2999 2565 --config: string # Additional configuration options (can be repeated)
3002 2568 --help(-h) # Print help (see more with '--help')
3005 - def "nu-complete jj workspace forget color" [] {
3006 - [ "always" "never" "debug" "auto" ]
3009 2571 # Stop tracking a workspace's working-copy commit in the repo
3010 2572 export extern "jj workspace forget" [
3011 2573 ...workspaces: string # Names of the workspaces to forget. By default, forgets only the current workspace
3015 2577 --at-operation: string # Operation to load the repo at
3016 2578 --at-op: string # Operation to load the repo at
3017 2579 --debug # Enable debug logging
3018 - --color: string@"nu-complete jj workspace forget color" # When to colorize output
2580 + --color: string # When to colorize output (always, never, debug, auto)
3019 2581 --quiet # Silence non-primary command output
3020 2582 --no-pager # Disable the pager
3021 2583 --config: string # Additional configuration options (can be repeated)
3024 2586 --help(-h) # Print help (see more with '--help')
3027 - def "nu-complete jj workspace list color" [] {
3028 - [ "always" "never" "debug" "auto" ]
3031 2589 # List workspaces
3032 2590 export extern "jj workspace list" [
3033 2591 --repository(-R): path # Path to repository to operate on
3036 2594 --at-operation: string # Operation to load the repo at
3037 2595 --at-op: string # Operation to load the repo at
3038 2596 --debug # Enable debug logging
3039 - --color: string@"nu-complete jj workspace list color" # When to colorize output
2597 + --color: string # When to colorize output (always, never, debug, auto)
3040 2598 --quiet # Silence non-primary command output
3041 2599 --no-pager # Disable the pager
3042 2600 --config: string # Additional configuration options (can be repeated)
3045 2603 --help(-h) # Print help (see more with '--help')
3048 - def "nu-complete jj workspace rename color" [] {
3049 - [ "always" "never" "debug" "auto" ]
3052 2606 # Renames the current workspace
3053 2607 export extern "jj workspace rename" [
3054 2608 new_workspace_name: string # The name of the workspace to update to
3058 2612 --at-operation: string # Operation to load the repo at
3059 2613 --at-op: string # Operation to load the repo at
3060 2614 --debug # Enable debug logging
3061 - --color: string@"nu-complete jj workspace rename color" # When to colorize output
2615 + --color: string # When to colorize output (always, never, debug, auto)
3062 2616 --quiet # Silence non-primary command output
3063 2617 --no-pager # Disable the pager
3064 2618 --config: string # Additional configuration options (can be repeated)
3067 2621 --help(-h) # Print help (see more with '--help')
3070 - def "nu-complete jj workspace root color" [] {
3071 - [ "always" "never" "debug" "auto" ]
3074 2624 # Show the current workspace root directory
3075 2625 export extern "jj workspace root" [
3076 2626 --repository(-R): path # Path to repository to operate on
3079 2629 --at-operation: string # Operation to load the repo at
3080 2630 --at-op: string # Operation to load the repo at
3081 2631 --debug # Enable debug logging
3082 - --color: string@"nu-complete jj workspace root color" # When to colorize output
2632 + --color: string # When to colorize output (always, never, debug, auto)
3083 2633 --quiet # Silence non-primary command output
3084 2634 --no-pager # Disable the pager
3085 2635 --config: string # Additional configuration options (can be repeated)
3088 2638 --help(-h) # Print help (see more with '--help')
3091 - def "nu-complete jj workspace update-stale color" [] {
3092 - [ "always" "never" "debug" "auto" ]
3095 2641 # Update a workspace that has become stale
3096 2642 export extern "jj workspace update-stale" [
3097 2643 --repository(-R): path # Path to repository to operate on
3100 2646 --at-operation: string # Operation to load the repo at
3101 2647 --at-op: string # Operation to load the repo at
3102 2648 --debug # Enable debug logging
3103 - --color: string@"nu-complete jj workspace update-stale color" # When to colorize output
2649 + --color: string # When to colorize output (always, never, debug, auto)
3104 2650 --quiet # Silence non-primary command output
3105 2651 --no-pager # Disable the pager
3106 2652 --config: string # Additional configuration options (can be repeated)

nushell/completions/pueue-completions.nu

Modified
1 +module completions {
3 + def "nu-complete pueue color" [] {
4 + [ "auto" "never" "always" ]
5 + }
7 + # Interact with the Pueue daemon
8 + export extern pueue [
9 + --verbose(-v) # Verbose mode (-v, -vv, -vvv)
10 + --color: string@"nu-complete pueue color" # Colorize the output; auto enables color output when connected to a tty
11 + --config(-c): string # If provided, Pueue only uses this config file. This path can also be set via the "PUEUE_CONFIG_PATH" environment variable. The commandline option overwrites the environment variable!
12 + --profile(-p): string # The name of the profile that should be loaded from your config file
13 + --help(-h) # Print help
14 + --version(-V) # Print version
15 + ]
17 + # Enqueue a task for execution. There're many different options when scheduling a task. Check the individual option help texts for more information. Furthermore, please remember that scheduled commands are executed via your system shell. This means that the command needs proper shell escaping. The safest way to preserve shell escaping is to surround your command with quotes, for example: pueue add 'ls $HOME && echo "Some string"'
18 + export extern "pueue add" [
19 + ...command: string # The command to be added
20 + --working-directory(-w): string # Specify current working directory
21 + --escape(-e) # Escape any special shell characters (" ", "&", "!", etc.). Beware: This implicitly disables nearly all shell specific syntax ("&&", "&>")
22 + --immediate(-i) # Immediately start the task
23 + --stashed(-s) # Create the task in Stashed state. Useful to avoid immediate execution if the queue is empty
24 + --delay(-d): string # Prevents the task from being enqueued until 'delay' elapses. See "enqueue" for accepted formats
25 + --group(-g): string # Assign the task to a group. Groups kind of act as separate queues. I.e. all groups run in parallel and you can specify the amount of parallel tasks for each group. If no group is specified, the default group will be used
26 + --after(-a): string # Start the task once all specified tasks have successfully finished. As soon as one of the dependencies fails, this task will fail as well
27 + --priority(-o): string # Start this task with a higher priority. The higher the number, the faster it will be processed
28 + --label(-l): string # Add some information for yourself. This string will be shown in the "status" table. There's no additional logic connected to it
29 + --print-task-id(-p) # Only return the task id instead of a text. This is useful when working with dependencies
30 + --help(-h) # Print help
31 + ]
33 + # Remove tasks from the list. Running or paused tasks need to be killed first
34 + export extern "pueue remove" [
35 + ...task_ids: string # The task ids to be removed
36 + --help(-h) # Print help
37 + ]
39 + # Switches the queue position of two commands. Only works on queued and stashed commands
40 + export extern "pueue switch" [
41 + task_id_1: string # The first task id
42 + task_id_2: string # The second task id
43 + --help(-h) # Print help
44 + ]
46 + # Stashed tasks won't be automatically started. You have to enqueue them or start them by hand
47 + export extern "pueue stash" [
48 + ...task_ids: string # Stash these specific tasks
49 + --help(-h) # Print help
50 + ]
52 + # Enqueue stashed tasks. They'll be handled normally afterwards
53 + export extern "pueue enqueue" [
54 + ...task_ids: string # Enqueue these specific tasks
55 + --delay(-d): string # Delay enqueuing these tasks until 'delay' elapses. See DELAY FORMAT below
56 + --help(-h) # Print help
57 + ]
59 + # Resume operation of specific tasks or groups of tasks. By default, this resumes the default group and all its tasks. Can also be used force-start specific tasks.
60 + export extern "pueue start" [
61 + ...task_ids: string # Start these specific tasks. Paused tasks will resumed. Queued or Stashed tasks will be force-started
62 + --group(-g): string # Resume a specific group and all paused tasks in it. The group will be set to running and its paused tasks will be resumed
63 + --all(-a) # Resume all groups! All groups will be set to running and paused tasks will be resumed
64 + --children(-c) # Deprecated: this switch no longer has any effect
65 + --help(-h) # Print help
66 + ]
68 + # Restart failed or successful task(s). By default, identical tasks will be created and enqueued, but it's possible to restart in-place. You can also edit a few properties, such as the path and the command, before restarting.
69 + export extern "pueue restart" [
70 + ...task_ids: string # Restart these specific tasks
71 + --all-failed(-a) # Restart all failed tasks across all groups. Nice to use in combination with `-i/--in-place`
72 + --failed-in-group(-g): string # Like `--all-failed`, but only restart tasks failed tasks of a specific group. The group will be set to running and its paused tasks will be resumed
73 + --start-immediately(-k) # Immediately start the tasks, no matter how many open slots there are. This will ignore any dependencies tasks may have
74 + --stashed(-s) # Set the restarted task to a "Stashed" state. Useful to avoid immediate execution
75 + --in-place(-i) # Restart the task by reusing the already existing tasks. This will overwrite any previous logs of the restarted tasks
76 + --not-in-place # Restart the task by creating a new identical tasks. Only applies, if you have the restart_in_place configuration set to true
77 + --edit(-e) # Edit the tasks' commands before restarting
78 + --edit-path(-p) # Edit the tasks' paths before restarting
79 + --edit-label(-l) # Edit the tasks' labels before restarting
80 + --edit-priority(-o) # Edit the tasks' priorities before restarting
81 + --help(-h) # Print help
82 + ]
84 + # Either pause running tasks or specific groups of tasks. By default, pauses the default group and all its tasks. A paused queue (group) won't start any new tasks.
85 + export extern "pueue pause" [
86 + ...task_ids: string # Pause these specific tasks. Does not affect the default group, groups or any other tasks
87 + --group(-g): string # Pause a specific group
88 + --all(-a) # Pause all groups!
89 + --wait(-w) # Only pause the specified group and let already running tasks finish by themselves
90 + --children(-c) # Deprecated: this switch no longer has any effect
91 + --help(-h) # Print help
92 + ]
94 + # Kill specific running tasks or whole task groups.. Kills all tasks of the default group when no ids or a specific group are provided.
95 + export extern "pueue kill" [
96 + ...task_ids: string # Kill these specific tasks
97 + --group(-g): string # Kill all running tasks in a group. This also pauses the group
98 + --all(-a) # Kill all running tasks across ALL groups. This also pauses all groups
99 + --children(-c) # Deprecated: this switch no longer has any effect
100 + --signal(-s): string # Send a UNIX signal instead of simply killing the process. DISCLAIMER: This bypasses Pueue's process handling logic! You might enter weird invalid states, use at your own descretion
101 + --help(-h) # Print help
104 + # Send something to a task. Useful for sending confirmations such as 'y\n'
105 + export extern "pueue send" [
106 + task_id: string # The id of the task
107 + input: string # The input that should be sent to the process
108 + --help(-h) # Print help
111 + # Edit the command, path, label, or priority of a stashed or queued task. By default only the command is edited. Multiple properties can be added in one go.
112 + export extern "pueue edit" [
113 + task_id: string # The task's id
114 + --command(-c) # Edit the task's command
115 + --path(-p) # Edit the task's path
116 + --label(-l) # Edit the task's label
117 + --priority(-o) # Edit the task's priority
118 + --help(-h) # Print help
121 + # Use this to add or remove groups. By default, this will simply display all known groups.
122 + export extern "pueue group" [
123 + --json(-j) # Print the list of groups as json
124 + --help(-h) # Print help
127 + # Add a group by name
128 + export extern "pueue group add" [
129 + name: string
130 + --parallel(-p): string # Set the amount of parallel tasks this group can have. Setting this to 0 means an unlimited amount of parallel tasks
131 + --help(-h) # Print help
134 + # Remove a group by name. This will move all tasks in this group to the default group!
135 + export extern "pueue group remove" [
136 + name: string
137 + --help(-h) # Print help
140 + # Print this message or the help of the given subcommand(s)
141 + export extern "pueue group help" [
144 + # Add a group by name
145 + export extern "pueue group help add" [
148 + # Remove a group by name. This will move all tasks in this group to the default group!
149 + export extern "pueue group help remove" [
152 + # Print this message or the help of the given subcommand(s)
153 + export extern "pueue group help help" [
156 + # Display the current status of all tasks
157 + export extern "pueue status" [
158 + ...query: string # Users can specify a custom query to filter for specific values, order by a column or limit the amount of tasks listed. Use `--help` for the full syntax definition
159 + --json(-j) # Print the current state as json to stdout. This does not include the output of tasks. Use `log -j` if you want everything
160 + --group(-g): string # Only show tasks of a specific group
161 + --help(-h) # Print help (see more with '--help')
164 + # Accept a list or map of JSON pueue tasks via stdin and display it just like "pueue status". A simple example might look like this: pueue status --json | jq -c '.tasks' | pueue format-status
165 + export extern "pueue format-status" [
166 + --group(-g): string # Only show tasks of a specific group
167 + --help(-h) # Print help
170 + # Display the log output of finished tasks. Only the last few lines will be shown by default. If you want to follow the output of a task, please use the "follow" subcommand.
171 + export extern "pueue log" [
172 + ...task_ids: string # View the task output of these specific tasks
173 + --json(-j) # Print the resulting tasks and output as json. By default only the last lines will be returned unless --full is provided. Take care, as the json cannot be streamed! If your logs are really huge, using --full can use all of your machine's RAM
174 + --lines(-l): string # Only print the last X lines of each task's output. This is done by default if you're looking at multiple tasks
175 + --full(-f) # Show the whole output
176 + --help(-h) # Print help
179 + # Follow the output of a currently running task. This command works like "tail -f"
180 + export extern "pueue follow" [
181 + task_id?: string # The id of the task you want to watch. If no or multiple tasks are running, you have to specify the id. If only a single task is running, you can omit the id
182 + --lines(-l): string # Only print the last X lines of the output before following
183 + --help(-h) # Print help
186 + # Wait until tasks are finished. By default, this will wait for all tasks in the default group to finish. Note: This will also wait for all tasks that aren't somehow 'Done'. Includes: [Paused, Stashed, Locked, Queued, ...]
187 + export extern "pueue wait" [
188 + ...task_ids: string # This allows you to wait for specific tasks to finish
189 + --group(-g): string # Wait for all tasks in a specific group
190 + --all(-a) # Wait for all tasks across all groups and the default group
191 + --quiet(-q) # Don't show any log output while waiting
192 + --status(-s): string # Wait for tasks to reach a specific task status
193 + --help(-h) # Print help
196 + # Remove all finished tasks from the list
197 + export extern "pueue clean" [
198 + --successful-only(-s) # Only clean tasks that finished successfully
199 + --group(-g): string # Only clean tasks of a specific group
200 + --help(-h) # Print help
203 + # Kill all tasks, clean up afterwards and reset EVERYTHING!
204 + export extern "pueue reset" [
205 + --children(-c) # Deprecated: this switch no longer has any effect
206 + --force(-f) # Don't ask for any confirmation
207 + --help(-h) # Print help
210 + # Remotely shut down the daemon. Should only be used if the daemon isn't started by a service manager
211 + export extern "pueue shutdown" [
212 + --help(-h) # Print help
215 + # Set the amount of allowed parallel tasks By default, adjusts the amount of the default group. No tasks will be stopped, if this is lowered. This limit is only considered when tasks are scheduled.
216 + export extern "pueue parallel" [
217 + parallel_tasks?: string # The amount of allowed parallel tasks. Setting this to 0 means an unlimited amount of parallel tasks
218 + --group(-g): string # Set the amount for a specific group
219 + --help(-h) # Print help
222 + def "nu-complete pueue completions shell" [] {
223 + [ "bash" "elvish" "fish" "power-shell" "zsh" "nushell" ]
226 + # Generates shell completion files. This can be ignored during normal operations
227 + export extern "pueue completions" [
228 + shell: string@"nu-complete pueue completions shell" # The target shell
229 + output_directory?: string # The output directory to which the file should be written
230 + --help(-h) # Print help
233 + # Print this message or the help of the given subcommand(s)
234 + export extern "pueue help" [
237 + # Enqueue a task for execution. There're many different options when scheduling a task. Check the individual option help texts for more information. Furthermore, please remember that scheduled commands are executed via your system shell. This means that the command needs proper shell escaping. The safest way to preserve shell escaping is to surround your command with quotes, for example: pueue add 'ls $HOME && echo "Some string"'
238 + export extern "pueue help add" [
241 + # Remove tasks from the list. Running or paused tasks need to be killed first
242 + export extern "pueue help remove" [
245 + # Switches the queue position of two commands. Only works on queued and stashed commands
246 + export extern "pueue help switch" [
249 + # Stashed tasks won't be automatically started. You have to enqueue them or start them by hand
250 + export extern "pueue help stash" [
253 + # Enqueue stashed tasks. They'll be handled normally afterwards
254 + export extern "pueue help enqueue" [
257 + # Resume operation of specific tasks or groups of tasks. By default, this resumes the default group and all its tasks. Can also be used force-start specific tasks.
258 + export extern "pueue help start" [
261 + # Restart failed or successful task(s). By default, identical tasks will be created and enqueued, but it's possible to restart in-place. You can also edit a few properties, such as the path and the command, before restarting.
262 + export extern "pueue help restart" [
265 + # Either pause running tasks or specific groups of tasks. By default, pauses the default group and all its tasks. A paused queue (group) won't start any new tasks.
266 + export extern "pueue help pause" [
269 + # Kill specific running tasks or whole task groups.. Kills all tasks of the default group when no ids or a specific group are provided.
270 + export extern "pueue help kill" [
273 + # Send something to a task. Useful for sending confirmations such as 'y\n'
274 + export extern "pueue help send" [
277 + # Edit the command, path, label, or priority of a stashed or queued task. By default only the command is edited. Multiple properties can be added in one go.
278 + export extern "pueue help edit" [
281 + # Use this to add or remove groups. By default, this will simply display all known groups.
282 + export extern "pueue help group" [
285 + # Add a group by name
286 + export extern "pueue help group add" [
289 + # Remove a group by name. This will move all tasks in this group to the default group!
290 + export extern "pueue help group remove" [
293 + # Display the current status of all tasks
294 + export extern "pueue help status" [
297 + # Accept a list or map of JSON pueue tasks via stdin and display it just like "pueue status". A simple example might look like this: pueue status --json | jq -c '.tasks' | pueue format-status
298 + export extern "pueue help format-status" [
301 + # Display the log output of finished tasks. Only the last few lines will be shown by default. If you want to follow the output of a task, please use the "follow" subcommand.
302 + export extern "pueue help log" [
305 + # Follow the output of a currently running task. This command works like "tail -f"
306 + export extern "pueue help follow" [
309 + # Wait until tasks are finished. By default, this will wait for all tasks in the default group to finish. Note: This will also wait for all tasks that aren't somehow 'Done'. Includes: [Paused, Stashed, Locked, Queued, ...]
310 + export extern "pueue help wait" [
313 + # Remove all finished tasks from the list
314 + export extern "pueue help clean" [
317 + # Kill all tasks, clean up afterwards and reset EVERYTHING!
318 + export extern "pueue help reset" [
321 + # Remotely shut down the daemon. Should only be used if the daemon isn't started by a service manager
322 + export extern "pueue help shutdown" [
325 + # Set the amount of allowed parallel tasks By default, adjusts the amount of the default group. No tasks will be stopped, if this is lowered. This limit is only considered when tasks are scheduled.
326 + export extern "pueue help parallel" [
329 + # Generates shell completion files. This can be ignored during normal operations
330 + export extern "pueue help completions" [
333 + # Print this message or the help of the given subcommand(s)
334 + export extern "pueue help help" [
339 +export use completions *