repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: setup minimal jdtls (syntax server) wezterm: larger font

6b9e0dc185dd3c8489caf869d82ea3c8281e729b

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (9)

neovim/lua/bugabinga/java.lua

Modified
1 1 local puk = require 'std.puk'
2 2 local project = require 'std.project'
3 3 local auto = require 'std.auto'
5 -local function parse_toolchains( toolchains_path )
6 - local runtimes = {}
7 - local file = io.open( toolchains_path, 'r' )
8 - if not file then
9 - print( 'Could not open toolchains.xml at ' .. toolchains_path )
10 - return runtimes
11 - end
13 - local content = file:read '*all'
14 - file:close()
16 - for toolchain in content:gmatch '<toolchain>(.-)</toolchain>' do
17 - local type = toolchain:match '<type>(.-)</type>'
18 - if type == 'jdk' then
19 - local version = toolchain:match '<version>(.-)</version>'
20 - local jdk_path = toolchain:match '<home>(.-)</home>'
21 - if version and jdk_path then
22 - table.insert( runtimes, {
23 - name = 'JavaSE-' .. version,
24 - path = jdk_path,
25 - } )
26 - end
27 - end
28 - end
30 - return runtimes
31 -end
33 -local data_path = vim.fn.stdpath 'data'
34 -if type( data_path ) == 'table' then
35 - data_path = data_path[1]
36 -end
37 -local home = vim.fs.abspath '~'
38 -local jdtls_install_path = vim.fs.joinpath( home, 'Tools', 'jdt-language-server-1.47.0-202504100338' )
39 -local toolchain_path = vim.fs.joinpath( home, '.m2', 'toolchains.xml' )
40 -local jdtls_path = vim.fs.joinpath( jdtls_install_path, 'plugins',
41 - 'org.eclipse.equinox.launcher_1.7.0.v20250404-1055.jar' )
4 +local map = require 'std.map'
5 +local dbg = require 'std.dbg'
6 +local localrc = require 'std.localrc'
7 +local table = require 'std.table'
43 9 local create_config = function ( syntax_server_mode, path )
10 + local data_path = vim.fn.stdpath 'data'
11 + if type( data_path ) == 'table' then
12 + data_path = data_path[1]
13 + end
14 + local home = vim.fs.abspath '~'
15 + local tools_path = vim.fs.joinpath( home, 'Tools' )
16 + local jdtls_jre_path = vim.fs.find( function ( name ) return name:match 'graalvm%-.*' end,
17 + { path = tools_path, type = 'directory' } )[1]
18 + -- vim.print( 'jdtls jre path', jdtls_jre_path )
19 + local jdtls_install_path = vim.fs.find( function ( name ) return name:match 'jdt%-language%-server%-.*' end,
20 + { path = tools_path, type = 'directory' } )[1]
21 + -- vim.print( 'jdtls install path', jdtls_install_path )
22 + local plugins_path = vim.fs.joinpath( jdtls_install_path, 'plugins' )
23 + local launcher_path = vim.fs.find( function ( name ) return name:match 'org%.eclipse%.equinox%.launcher_.*' end,
24 + { path = plugins_path, type = 'file' } )[1]
25 + -- vim.print( 'jdtls launcher path', launcher_path )
27 + local project_local_settings = localrc( '.jdtls.lua', 'table' ) or {}
28 + project_local_settings.jdtls = project_local_settings.jdtls or {}
30 + -- vim.print( 'project local settings', project_local_settings )
32 + local find_runtimes = function ()
33 + local runtimes = {}
35 + table.insert( runtimes, {
36 + name = 'JavaSE-24',
37 + path = jdtls_jre_path,
38 + sources = vim.fs.joinpath( jdtls_jre_path, 'lib', 'src.zip' ),
39 + default = true,
40 + } )
42 + if (project_local_settings.jdtls.runtimes) then
43 + return table.deep_extend( 'force', runtimes, project_local_settings.jdlts.runtimes )
44 + else
45 + return runtimes
46 + end
47 + end
44 48 local root_dir = project.find_java_project_root( path )
45 49 local jdlts_config_dir
46 50 if syntax_server_mode then
51 55 local config_dir = vim.fs.joinpath( jdtls_install_path, jdlts_config_dir )
52 56 local workspace_dir = vim.fs.joinpath( data_path, 'jdtls-workspace', vim.fs.basename( root_dir ) )
57 + local compiler_options_path = vim.fs.joinpath( home, '.config', 'jdlts', 'compiler_options.properties' )
54 59 local cmd = {
55 - 'java',
60 + vim.fs.joinpath( jdtls_jre_path, 'bin', 'java' ),
56 61 '-Declipse.application=org.eclipse.jdt.ls.core.id1',
57 62 '-Dosgi.bundles.defaultStartLevel=4',
58 63 '-Declipse.product=org.eclipse.jdt.ls.core.product',
59 64 '-Dlog.level=ERROR',
60 65 '-Xmx8G',
61 - '-XX:+UseG1GC',
62 66 '--add-modules=ALL-SYSTEM',
63 67 '--add-opens', 'java.base/java.util=ALL-UNNAMED',
64 68 '--add-opens', 'java.base/java.lang=ALL-UNNAMED',
65 - '-jar', jdtls_path,
69 + '-jar', launcher_path,
66 70 '-configuration', config_dir,
67 71 '-data', workspace_dir,
71 75 table.insert( cmd, 2, '-Dsyntaxserver=true' )
74 - local runtimes = parse_toolchains( toolchain_path )
78 + local runtimes = find_runtimes()
75 79 local config = {
76 80 name = syntax_server_mode and 'jdtlsss' or 'jdtls',
77 81 cmd = cmd,
78 82 root_dir = root_dir,
79 83 settings = {
80 84 java = {
81 - signatureHelp = { enabled = true },
82 - sources = {
83 - autobuild = { enabled = true },
84 - signatureHelp = { enabled = true },
85 - saveActions = { origanizeImports = true },
85 + autobuild = { enabled = true },
86 + cleanup = {
87 + actionsOnSave = {
88 + 'qualifyMembers',
89 + 'qualifyStaticMembers',
90 + 'addOverride',
91 + 'addDeprecated',
92 + 'stringConcatToTextBlock',
93 + 'invertEquals',
94 + 'addFinalModifier',
95 + 'instanceofPatternMatch',
96 + 'switchExpression',
97 + },
98 + },
99 + codeGeneration = {
100 + generateComments = false,
101 + hashCodeEquals = { useJava7Objects = true },
102 + toString = {
103 + template = '${object.className}{${member.name()}=${member.value()}, ${otherMembers}}',
104 + },
105 + useBlocks = true,
106 + },
107 + codeAction = { sortMembers = { avoidVolatileChanges = true } },
108 + completion = {
109 + enabled = true,
110 + favortiteStaticMembers = {
111 + 'org.junit.Assert.*',
112 + 'org.junit.Assume.*',
113 + 'org.junit.jupiter.api.Assertions.*',
114 + 'org.junit.jupiter.api.Assumptions.*',
115 + 'org.junit.jupiter.api.DynamicContainer.*',
116 + 'org.junit.jupiter.api.DynamicTest.*',
117 + 'org.assertj.core.api.Assertions.*',
118 + 'org.assertj.core.api.Assumptions.*',
119 + 'java.util.Objects.requireNonNull',
120 + 'java.util.Objects.requireNonNullElse',
121 + 'java.time.temporal.ChronoUnit.*',
122 + 'java.lang.System.Logger',
123 + 'java.lang.System.Logger.Level.*',
124 + },
125 + filteredTypes = {
126 + -- Swing and AWT
127 + 'javax.swing.*',
128 + 'java.awt.*',
129 + -- CORBA
130 + 'org.omg.*',
131 + -- Applet
132 + 'java.applet.*',
133 + -- Legacy JAF
134 + 'javax.activation.*',
135 + -- Legacy Security
136 + 'java.security.acl.*',
137 + 'javax.security.auth.callback.*',
138 + -- Legacy XML/SOAP
139 + 'javax.xml.soap.*',
140 + 'javax.xml.rpc.*',
141 + -- RMI
142 + 'java.rmi.*',
143 + -- Legacy Collections
144 + 'java.util.Vector',
145 + 'java.util.Hashtable',
146 + 'java.util.Stack',
147 + 'java.util.Dictionary',
148 + -- Deprecated Classes
149 + 'java.util.Date',
150 + 'java.util.Calendar',
151 + 'java.util.Observable',
152 + 'java.util.Observer',
153 + -- Niche Packages
154 + 'javax.annotation.*',
155 + 'javax.jws.*',
156 + 'java.beans.*',
157 + 'javax.management.*',
158 + },
159 + guessMethodArguments = false,
160 + importOrder = {
161 + 'net',
162 + 'de',
163 + 'org',
164 + 'com',
165 + 'javax',
166 + 'java',
167 + },
168 + matchCase = 'FIRSTLETTER',
169 + maxResults = 5,
170 + overwrite = true,
171 + postfix = { enabled = true },
172 + },
173 + configuration = {
174 + runtimes = runtimes,
175 + updateBuildConfiguration = 'interactive',
176 + },
177 + contentProvider = { preferred = nil },
178 + eclipse = { downloadSources = true },
179 + errors = { incompleteClassPath = { severity = 'error' } },
180 + executeCommand = { enabled = true },
181 + foldingRange = { enabled = false },
182 + format = { enabled = true },
183 + home = jdtls_jre_path,
184 + implementationsCodeLens = { enabled = true },
185 + import = {
186 + maven = { enabled = true },
187 + gradle = {
188 + enabled = true,
189 + annotationProcessing = true,
190 + wrapper = { enabled = true },
191 + },
192 + exclusions = {
193 + '**/output/**',
194 + '**/target/**',
195 + '**/node_modules/**',
196 + '**/.metadata/**',
197 + '**/archetype-resources/**',
198 + '**/META-INF/maven/**',
199 + },
200 + },
201 + inlayHints = { parameterNames = { enabled = 'all' } },
202 + jdt = {
203 + ls = {
204 + androidSupport = false,
205 + lombokSupport = false,
206 + protofBufSupport = true,
207 + },
208 + },
209 + maven = { notCoveredPluginExecutionSeverity = 'error' },
210 + maxConcurrentBuilds = 16,
211 + project = {
212 + encoding = 'SETDEFAULT',
213 + outputPath = project_local_settings.jdtls.outputPath,
214 + referencedLibraries = project_local_settings.jdtls.referencedLibraries,
215 + resourceFilters = project_local_settings.jdtls.resourceFilters,
216 + sourcePaths = project_local_settings.jdtls.sourcePaths,
217 + },
218 + referencesCodeLens = { enabled = true },
219 + references = {
220 + includeAccessors = true,
221 + includeDecompiledSources = true,
222 + },
223 + rename = { enabled = true },
224 + saveActions = { origanizeImports = true },
225 + selectionRange = { enabled = true },
226 + settings = {
227 + url = compiler_options_path,
228 + },
229 + signatureHelp = { enabled = true },
230 + sources = {
86 231 organizeImports = {
87 232 starThreshold = 9999,
88 233 staticStarThreshold = 9999,
90 - codeGeneration = {
91 - toString = {
92 - template = '${object.className}{${member.name()}=${member.value()}, ${otherMembers}}',
93 - },
94 - hashCodeEquals = { useJava7Objects = true },
95 - useBlocks = true,
96 - },
97 - eclipse = { downloadSources = true },
99 - configuration = {
100 - updateBuildConfiguration = 'interactive',
101 - runtimes = runtimes,
102 - },
103 - maven = { downloadSources = true },
104 - implementationsCodeLens = { enabled = true },
105 - referencesCodeLens = { enabled = true },
106 - references = { includeDecompiledSources = true },
107 - inlayHints = { parameterNames = { enabled = 'all' } },
108 - format = { enabled = true },
236 + symbols = { includeSourceMethodDeclarations = true },
237 + trace = { server = dbg.get() and 'verbose' or 'off' },
238 + edit = { validateAllOpenBuffersOnChanges = false },
111 241 handlers = {
112 242 ['language/status'] = function ( _, status )
113 243 if status.message == 'ServiceReady' and not syntax_server_mode then
114 244 -- TODO stop syntax server
245 + vim.print 'jdlts is ready now'
126 257 command = function ()
127 258 local path = vim.api.nvim_buf_get_name( 0 )
128 259 puk 'jdtls'.start_or_attach( create_config( true, path ) )
129 - puk 'jdtls'.start_or_attach( create_config( false, path ) )

neovim/lua/bugabinga/lsp.lua

Modified
24 24 zls = { root_dir = project.find_zig_project_root },
25 25 ziggy = { root_dir = project.find_zig_project_root },
26 26 ziggy_schema = { root_dir = project.find_zig_project_root },
27 - harper_ls = {
28 - settings = {
29 - ['harper-ls'] = {
30 - userDictPath = '',
31 - fileDictPath = '',
32 - linters = {
33 - SpellCheck = false,
34 - SpelledNumbers = false,
35 - AnA = true,
36 - SentenceCapitalization = false,
37 - UnclosedQuotes = true,
38 - WrongQuotes = false,
39 - LongSentences = true,
40 - RepeatedWords = true,
41 - Spaces = false,
42 - Matcher = true,
43 - CorrectNumberSuffix = true,
44 - },
45 - codeActions = {
46 - ForceStable = false,
47 - },
48 - markdown = {
49 - IgnoreLinkTitle = false,
50 - },
51 - diagnosticSeverity = 'hint',
52 - isolateEnglish = false,
53 - },
54 - },
55 - },
56 27 asm_lsp = {},
57 28 clangd = {},
58 29 denols = {},

neovim/lua/patches/init.lua

Modified
1 1 require 'patches.snippet'
2 +require 'patches.string'

neovim/lua/patches/string.lua

Added
new file mode 100644
1 +--- Strips leading and trailing whitespace from a string.
2 +---
3 +--- Uses pattern matching to remove ASCII whitespace (spaces, tabs, newlines, etc.).
4 +--- Returns the trimmed string, or an empty string if the input is empty or all whitespace.
5 +---
6 +--- @param str string The input string to strip.
7 +--- @return string The stripped string.
8 +--- @usage
9 +--- local str = " hello world \n"
10 +--- local result = string.strip(str) -- Returns "hello world"
11 +--- @note
12 +--- - Only handles ASCII whitespace (`%s` in Lua patterns).
13 +--- - Unicode whitespace requires custom handling, which Lua 5.1 sucks at.
14 +--- - Edge cases: empty string returns "", all whitespace returns "".
15 +function string.strip(str)
16 + return string.match(str, "^%s*(.-)%s*$") or str
17 +end

neovim/lua/std/ignored.lua

Modified
18 18 'nvim-docs-view',
19 19 'oil',
20 20 'qf',
21 + 'netrw',
21 22 'svn',

nushell/completions/jj-completions.nu

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

wezterm/bugabinga/code_fonts.csv

Modified
1 -10,Bitstream Vera Sans Mono
2 -4,Envy Code R
3 -20,Generic Mono II
4 -20,Hermit
5 -11,IBM Plex Mono
6 -7,Kawkab Mono
7 -11,Lekton
8 -3,Luculent
9 -3,Luxi Mono
10 -54,M+ 1mn
11 -14,M+ 2m
12 -22,Monaspace Krypton Var
13 -6,Oxygen Mono
14 -4,SmallTypeWriting
1 +10,Bitstream Vera Sans Mono
2 +4,Envy Code R
3 +20,Generic Mono II
4 +20,Hermit
5 +18,IBM Plex Mono
6 +7,Kawkab Mono
7 +11,Lekton
8 +3,Luculent
9 +3,Luxi Mono
10 +54,M+ 1mn
11 +14,M+ 2m
12 +22,Monaspace Krypton Var
13 +6,Oxygen Mono
14 +4,SmallTypeWriting

wezterm/bugabinga/hosts/NB-00718.lua

Modified
1 1 local code_font = require 'bugabinga.code_font'
3 3 return function ( cfg )
4 - cfg.font_size = 13
4 + cfg.font_size = 15
5 5 cfg.font = code_font.random();
7 7 cfg.window_decorations = 'RESIZE'