Fossil SCM

fossil-scm / tools / fossil-autocomplete.zsh
Blame History Raw 3531 lines
1
#compdef fossil
2
# Origin: https://chiselapp.com/user/lifepillar/repository/fossil-zsh-completion
3
#################################################################################
4
# #
5
# Copyright 2020 Lifepillar #
6
# #
7
# Permission is hereby granted, free of charge, to any person obtaining a copy #
8
# of this software and associated documentation files (the "Software"), to deal #
9
# in the Software without restriction, including without limitation the rights #
10
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
11
# copies of the Software, and to permit persons to whom the Software is #
12
# furnished to do so, subject to the following conditions: #
13
# #
14
# The above copyright notice and this permission notice shall be included in #
15
# all copies or substantial portions of the Software. #
16
# #
17
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
18
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
19
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
20
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
21
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
22
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE #
23
# SOFTWARE. #
24
# #
25
#################################################################################
26
27
# To reload the completion function after it has been modified:
28
#
29
# $ unfunction _fossil
30
# $ autoload -U _fossil
31
#
32
# See also: http://zsh.sourceforge.net/Doc/Release/Completion-System.html
33
# See also: https://github.com/zsh-users/zsh-completions/blob/master/zsh-completions-howto.org
34
35
################################################################################
36
# Functions that help build this completion file #
37
################################################################################
38
39
# This function can be used to generate scaffolding code for the options of all
40
# the commands. Copy and paste the result at the suitable spot in this script
41
# to update it. To parse all commands:
42
#
43
# __fossil_parse_help -a
44
#
45
# To parse all test commands:
46
#
47
# __fossil_parse_help -t
48
#
49
# NOTE: The code must be adapted manually. Diff with previous version!
50
function __fossil_parse_help() {
51
echo ' case "$words[1]" in'
52
for c in `fossil help $1 | xargs -n1 | sort`;
53
do
54
echo " ($c)"
55
echo ' _arguments \\'
56
__fossil_format_options $c;
57
echo " '(- *)'--help'[Show help and exit]' \\"
58
echo " '*:files:_files'"
59
echo ''
60
echo ' ;;'
61
done;
62
echo ' esac'
63
echo ' ;;'
64
}
65
66
# Extract the options of a command and format it in a way that can be used in
67
# a ZSH completion script.
68
# Use `__fossil_format_options -o` to extract the common options.
69
function __fossil_format_options() {
70
fossil help $1 2>&1 \
71
| grep '^\s\{1,3\}-' \
72
| sed -E 's/^ +//' \
73
| awk -F ' +' '{
74
v=match($1,/\|/)
75
split($1,y,"|")
76
printf " "
77
if (v>0)
78
printf "\"(--help %s %s)\"{%s,%s}",y[1],y[2],y[1],y[2];
79
else
80
printf "\"(--help %s)\"%s",y[1],y[1];
81
$1=""
82
gsub(/^ +| +$/,"",$0);
83
gsub(/^ +| +$/,"",$0);
84
gsub(/\x27/,"\x27\"\x27\"\x27",$0);
85
print "\x27["$0"]\x27 \\";
86
}'
87
}
88
89
90
################################################################################
91
# Helper functions used for completion. #
92
################################################################################
93
94
function __fossil_commands() {
95
fossil help --all
96
}
97
98
function __fossil_test_commands() {
99
fossil help --test
100
}
101
102
function __fossil_all_commands() {
103
__fossil_commands
104
__fossil_test_commands
105
}
106
107
function __fossil_users() {
108
fossil user ls 2>/dev/null | awk '{print $1}'
109
}
110
111
function __fossil_branches() {
112
fossil branch ls -a 2>/dev/null | sed 's/\* *//'
113
}
114
115
function __fossil_tags() {
116
fossil tag ls 2>/dev/null
117
}
118
119
function __fossil_repos() {
120
ls | grep .fossil
121
fossil all ls 2>/dev/null
122
}
123
124
function __fossil_remotes() {
125
fossil remote list 2>/dev/null | awk '{print $1}'
126
}
127
128
function __fossil_wiki_pages() {
129
fossil wiki list 2>/dev/null
130
}
131
132
function __fossil_areas() {
133
compadd all email project shun skin ticket user alias subscriber
134
return 0
135
}
136
137
function __fossil_settings() {
138
fossil help --setting
139
}
140
141
function __fossil_urls() {
142
local u
143
u=($(__fossil_remotes))
144
compadd -a u
145
compadd -S '' file:// http:// https:// ssh://
146
return 0
147
}
148
149
################################################################################
150
# Main #
151
################################################################################
152
153
function _fossil() {
154
local context state state_descr line
155
typeset -A opt_args
156
157
local -a _common_options
158
# Scaffolding code for common options can be generated with `__fossil_format_options -o`.
159
_common_options=(
160
"(--help --args)"--args'[FILENAME Read additional arguments and options from FILENAME]:file:_files'
161
"(--help --cgitrace)"--cgitrace'[Active CGI tracing]'
162
"(--help --comfmtflags --comment-format)"--comfmtflags'[VALUE Set comment formatting flags to VALUE]:value:'
163
"(--help --comment-format --comfmtflags)"--comment-format'[VALUE Alias for --comfmtflags]:value:'
164
"(--help --errorlog)"--errorlog'[FILENAME Log errors to FILENAME]:file:_files'
165
"(- -? --help)"{-?,--help}
166
'[Show help on the command rather than running it]'
167
"(--help --httptrace)"--httptrace'[Trace outbound HTTP requests]'
168
"(--help --localtime)"--localtime'[Display times using the local timezone]'
169
"(--help --no-th-hook)"--no-th-hook'[Do not run TH1 hooks]'
170
"(--help --quiet)"--quiet'[Reduce the amount of output]'
171
"(--help --sqlstats)"--sqlstats'[Show SQL usage statistics when done]'
172
"(--help --sqltrace)"--sqltrace'[Trace all SQL commands]'
173
"(--help --sshtrace)"--sshtrace'[Trace SSH activity]'
174
"(--help --ssl-identity)"--ssl-identity'[NAME Set the SSL identity to NAME]:name:'
175
"(--help --systemtrace)"--systemtrace'[Trace calls to system()]'
176
"(--help --user -U)"{--user,-U}'[USER Make the default user be USER]:user:($(__fossil_users))'
177
"(--help --utc)"--utc'[Display times using UTC]'
178
"(--help --vfs)"--vfs'[NAME Cause SQLite to use the NAME VFS]:name:'
179
)
180
181
local -a _fossil_clean_options
182
_fossil_clean_options=(
183
"(--help --allckouts)"--allckouts'[Check for empty directories within any checkouts]'
184
"(--help --case-sensitive)"--case-sensitive'[BOOL Override case-sensitive setting]:bool:(yes no)'
185
"(--help --dirsonly)"--dirsonly'[Only remove empty directories]'
186
"(--help --disable-undo)"--disable-undo'[Disables use of the undo]'
187
"(--help --dotfiles)"--dotfiles'[Include files beginning with a dot (".")]'
188
"(--help --emptydirs)"--emptydirs'[Remove empty directories]'
189
"(--help -f --force)"{-f,--force}'[Remove files without prompting]'
190
"(--help -i --prompt)"{-i,--prompt}'[Prompt before removing each file]'
191
"(--help -x --verily)"{-x,--verily}'[Remove everything that is not managed]'
192
"(--help --clean)"--clean'[CSG Never prompt to delete files matching CSG glob pattern]:pattern:'
193
"(--help --ignore)"--ignore'[CSG Ignore files matching CSG glob pattern]:pattern:'
194
"(--help --keep)"--keep'[CSG Keep files matching CSG glob pattern]:pattern:'
195
"(--help -n --dry-run)"{-n,--dry-run}'[Delete nothing, but display what would have been deleted]'
196
"(--help --no-prompt)"--no-prompt'[Assume NO for every question]'
197
"(--help --temp)"--temp'[Remove only Fossil-generated temporary files]'
198
"(--help -v --verbose)"{-v,--verbose}'[Show all files as they are removed]'
199
)
200
201
local -a _fossil_rebuild_options
202
_fossil_rebuild_options=(
203
"(--help --analyze)"--analyze'[Run ANALYZE on the database after rebuilding]'
204
"(--help --cluster)"--cluster'[Compute clusters for unclustered artifacts]'
205
"(--help --compress)"--compress'[Strive to make the database as small as possible]'
206
"(--help --compress-only)"--compress-only'[Skip the rebuilding step. Do --compress only]'
207
"(--help --deanalyze)"--deanalyze'[Remove ANALYZE tables from the database]'
208
"(--help --ifneeded)"--ifneeded'[Only do the rebuild if it would change the schema version]'
209
"(--help --index)"--index'[Always add in the full-text search index]'
210
"(--help --noverify)"--noverify'[Skip the verification of changes to the BLOB table]'
211
"(--help --noindex)"--noindex'[Always omit the full-text search index]'
212
"(--help --pagesize)"--pagesize'[N Set the database pagesize to N. (512..65536 and power of 2)]:number:'
213
"(--help --quiet)"--quiet'[Only show output if there are errors]'
214
"(--help --stats)"--stats'[Show artifact statistics after rebuilding]'
215
"(--help --vacuum)"--vacuum'[Run VACUUM on the database after rebuilding]'
216
"(--help --wal)"--wal'[Set Write-Ahead-Log journalling mode on the database]'
217
)
218
219
local -a _fossil_dbstat_options
220
_fossil_dbstat_options=(
221
"(--help --brief -b)"{--brief,-b}'[Only show essential elements]'
222
"(--help --db-check)"--db-check'[Run "PRAGMA quick_check" on the repository database]'
223
"(--help --db-verify)"--db-verify'[Run a full verification of the repository integrity]'
224
"(--help --omit-version-info)"--omit-version-info'[Omit the SQLite and Fossil version information]'
225
)
226
227
local -a _fossil_diff_options
228
_fossil_diff_options=(
229
"(--help --binary)"--binary'[PATTERN Treat files that match the glob PATTERN as binary]:pattern:'
230
"(--help --branch)"--branch'[BRANCH Show diff of all changes on BRANCH]:branch:($(__fossil_branches))'
231
"(--help --brief)"--brief'[Show filenames only]'
232
"(--help --checkin)"--checkin'[VERSION Show diff of all changes in VERSION]:version:'
233
"(--help --command)"--command'[PROG External diff program - overrides "diff-command"]:program:'
234
"(--help --context -c)"{--context,-c}'[N Use N lines of context]:number:'
235
"(--help --diff-binary)"--diff-binary'[BOOL Include binary files when using external commands]:bool:(yes no)'
236
"(--help --exec-abs-paths)"--exec-abs-paths'[Force absolute path names with external commands]'
237
"(--help --exec-rel-paths)"--exec-rel-paths'[Force relative path names with external commands]'
238
"(--help --from -r)"{--from,-r}'[VERSION Select VERSION as source for the diff]:version:'
239
"(--help --internal -i)"{--internal,-i}'[Use internal diff logic]'
240
"(--help --new-file -N)"{--new-file,-N}'[Show complete text of added and deleted files]'
241
"(--help --numstat)"--numstat'[Show only the number of lines delete and added]'
242
"(--help --side-by-side -y)"{--side-by-side,-y}'[Side-by-side diff]'
243
"(--help --strip-trailing-cr)"--strip-trailing-cr'[Strip trailing CR]'
244
"(--help --tclsh)"--tclsh'[PATH Tcl/Tk used for --tk (default: "tclsh")]'
245
"(--help --tk)"--tk'[Launch a Tcl/Tk GUI for display]'
246
"(--help --to)"--to'[VERSION Select VERSION as target for the diff]:version:'
247
"(--help --undo)"--undo'[Diff against the "undo" buffer]'
248
"(--help --unified)"--unified'[Unified diff]'
249
"(--help -v --verbose)"{-v,--verbose}'[Output complete text of added or deleted files]'
250
"(--help -w --ignore-all-space)"{-w,--ignore-all-space}'[Ignore white space when comparing lines]'
251
"(--help -W --width)"{-W,--width}'[NUM Width of lines in side-by-side diff]:number:'
252
"(--help -Z --ignore-trailing-space)"{-Z,--ignore-trailing-space}'[Ignore changes to end-of-line whitespace]'
253
)
254
255
local -a _fossil_extras_options
256
_fossil_extras_options=(
257
"(--help --abs-paths)"--abs-paths'[Display absolute pathnames]'
258
"(--help --case-sensitive)"--case-sensitive'[BOOL Override case-sensitive setting]:bool:(yes no)'
259
"(--help --dotfiles)"--dotfiles'[Include files beginning with a dot (".")]'
260
"(--help --header)"--header'[Identify the repository if there are extras]'
261
"(--help --ignore)"--ignore'[CSG Ignore files matching patterns from the argument]:pattern:'
262
"(--help --rel-paths)"--rel-paths'[Display pathnames relative to the current working]'
263
)
264
265
local -a _fossil_server_options
266
_fossil_server_options=(
267
"(--help --baseurl)"--baseurl'[URL Use URL as the base]:url:__fossil_urls'
268
"(--help --create)"--create'[Create a new REPOSITORY if it does not already exist]'
269
"(--help --extroot)"--extroot'[DIR Document root for the /ext extension mechanism]:directory:_files -/'
270
"(--help --files)"--files'[GLOBLIST Comma-separated list of glob patterns for static files]:pattern:'
271
"(--help --localauth)"--localauth'[Enable automatic login for requests from localhost]'
272
"(--help --localhost)"--localhost'[Listen on 126.0.0.1 only]'
273
"(--help --https)"--https'[Input passes through a reverse HTTPS->HTTP proxy]'
274
"(--help --jsmode)"--jsmode'[MODE Determine how JavaScript is delivered with pages]:mode:(inline separate bundled)'
275
"(--help --max-latency)"--max-latency'[N Do not let any single HTTP request run for more than N seconds]:number:'
276
"(--help --nocompress)"--nocompress'[Do not compress HTTP replies]'
277
"(--help --nojail)"--nojail'[Drop root privileges but do not enter the chroot jail]'
278
"(--help --nossl)"--nossl'[Signal that no SSL connections are available]'
279
"(--help --notfound)"--notfound'[URL Redirect]:url:__fossil_urls'
280
"(--help --page)"--page'[PAGE Start "ui" on PAGE. ex: --page "timeline?y=ci"]:number:'
281
"(--help -P --port)"{-P,--port}'[TCPPORT Listen to request on port TCPPORT]:number:'
282
"(--help --th-trace)"--th-trace'[Trace TH0 execution (for debugging purposes)]'
283
"(--help --repolist)"--repolist'[If REPOSITORY is dir, URL "/" lists repos]'
284
"(--help --scgi)"--scgi'[Accept SCGI rather than HTTP]'
285
"(--help --skin)"--skin'[LABEL Use override skin LABEL]:label:'
286
"(--help --usepidkey)"--usepidkey'[Use saved encryption key from parent process]'
287
)
288
289
_arguments -C \
290
${_common_options[@]} \
291
'1:command:->command' \
292
'*::args:->args'
293
294
case $state in
295
(command)
296
if [[ $line =~ '^te' ]]; then
297
_arguments '*:test commands:($(__fossil_test_commands))'
298
else
299
_arguments '*:commands:($(__fossil_commands))'
300
fi
301
;;
302
(args)
303
if [[ $line[1] =~ '^test-' ]]; then
304
__fossil_complete_test_commands
305
return 0
306
fi
307
308
case $line[1] in
309
(3-way-merge)
310
_arguments \
311
'(- *)'--help'[Show help and exit]' \
312
'*:files:_files'
313
314
;;
315
(add)
316
_arguments \
317
"(--help --case-sensitive)"--case-sensitive'[BOOL Override the case-sensitive setting]:bool:(yes no)' \
318
"(--help --dotfiles)"--dotfiles'[include files beginning with a dot (".")]' \
319
"(--help -f --force)"{-f,--force}'[Add files without prompting]' \
320
"(--help --ignore)"--ignore'[CSG Ignore unmanaged files matching Comma Separated Glob]:pattern:' \
321
"(--help --clean)"--clean'[CSG Also ignore files matching Comma Separated Glob]:pattern:' \
322
"(--help --reset)"--reset'[Reset the ADDED state of a checkout]' \
323
"(--help -v --verbose)"{-v,--verbose}'[Outputs information about each --reset file]' \
324
"(--help -n --dry-run)"{-n,--dry-run}'[Display instead of run actions]' \
325
'(- *)'--help'[Show help and exit]' \
326
'*:files:_files'
327
328
;;
329
(addremove)
330
_arguments \
331
"(--help --case-sensitive)"--case-sensitive'[BOOL Override the case-sensitive setting]:bool:(yes no)' \
332
"(--help --dotfiles)"--dotfiles'[Include files beginning with a dot (".")]' \
333
"(--help --ignore)"--ignore'[CSG Ignore unmanaged files matching Comma Separated Glob]:pattern:' \
334
"(--help --clean)"--clean'[CSG Also ignore files matching Comma Separated Glob]:pattern:' \
335
"(--help -n --dry-run)"{-n,--dry-run}'[If given, display instead of run actions]' \
336
"(--help --reset)"--reset'[Reset the ADDED/DELETED state of a checkout]' \
337
"(--help --verbose -v)"{--verbose,-v}'[Outputs information about each --reset file]' \
338
'(- *)'--help'[Show help and exit]' \
339
'*:files:_files'
340
341
;;
342
(alerts)
343
__fossil_alerts
344
345
;;
346
(all)
347
__fossil_all
348
349
;;
350
(amend)
351
_arguments \
352
':hash:' \
353
"(--help --author)"--author'[USER Make USER the author for check-in]:user:($(__fossil_users))' \
354
"(--help -m --comment)"{-m,--comment}'[COMMENT Make COMMENT the check-in comment]:comment:' \
355
"(--help -M --message-file)"{-M,--message-file}'[FILE Read the amended comment from FILE]:file:_files' \
356
"(--help -e --edit-comment)"{-e,--edit-comment}'[Launch editor to revise comment]' \
357
"(--help --date)"--date'[DATETIME Make DATETIME the check-in time]:datetime:(now)' \
358
"(--help --bgcolor)"--bgcolor'[COLOR Apply COLOR to this check-in]:color:' \
359
"(--help --branchcolor)"--branchcolor'[COLOR Apply and propagate COLOR to the branch]:color:' \
360
"(--help --tag)"--tag'[TAG Add new TAG to this check-in]:tag:($(__fossil_tags))' \
361
"(--help --cancel)"--cancel'[TAG Cancel TAG from this check-in]:tag:($(__fossil_tags))' \
362
"(--help --branch)"--branch'[NAME Make this check-in the start of branch NAME]:name:($(__fossil_branches))' \
363
"(--help --hide)"--hide'[Hide branch starting from this check-in]' \
364
"(--help --close)"--close'[Mark this "leaf" as closed]' \
365
"(--help -n --dry-run)"{-n,--dry-run}'[Print control artifact, but make no changes]' \
366
"(--help --date-override)"--date-override'[DATETIME Set the change time on the control artifact]:datetime:(now)' \
367
"(--help --user-override)"--user-override'[USER Set the user name on the control artifact]:user:($(__fossil_users))' \
368
'(- *)'--help'[Show help and exit]'
369
370
;;
371
(annotate|blame|praise)
372
_arguments \
373
"(--help --filevers)"--filevers'[Show file version numbers]' \
374
"(--help -r --revision)"{-r,--revision}'[VERSION The specific check-in containing the file]:version:' \
375
"(--help -l --log)"{-l,--log}'[List all versions analyzed]' \
376
"(--help -n --limit)"{-n,--limit}'[LIMIT Limit versions]:limit:(none)' \
377
"(--help -o --origin)"{-o,--origin}'[VERSION The origin check-in]:version:' \
378
"(--help -w --ignore-all-space)"{-w,--ignore-all-space}'[Ignore white space when comparing lines]' \
379
"(--help -Z --ignore-trailing-space)"{-Z,--ignore-trailing-space}'[Ignore whitespace at line end]' \
380
'(- *)'--help'[Show help and exit]' \
381
'1:file:_files'
382
383
;;
384
(artifact)
385
_arguments \
386
"(--help -R --repository)"{-R,--repository}'[FILE Extract artifacts from repository FILE]:fossils:($(__fossil_repos))' \
387
'(- *)'--help'[Show help and exit]' \
388
'1:artifact id:' \
389
'2::output file:_files'
390
391
;;
392
(attachment)
393
_arguments \
394
"(--help -t --technote)"{-t,--technote}'[DATETIME The timestamp of the technote]:datetime:(now)' \
395
"(--help -t --technote)"{-t,--technote}'[TECHNOTE-ID The technote to be updated]:technote-id:' \
396
'(- *)'--help'[Show help and exit]' \
397
'1:what:(add)' \
398
'::pagename:($(__fossil_wiki_pages))' \
399
':file:_files'
400
401
;;
402
(backoffice)
403
_arguments \
404
"(--help --debug)"--debug'[Show what this command is doing]' \
405
"(--help --logfile)"--logfile'[FILE Append a log of backoffice actions onto FILE]:file:_files' \
406
"(--help --min)"--min'[N Invoke backoffice at least once every N seconds]:number:' \
407
"(--help --poll)"--poll'[N Polling frequency]:number:' \
408
"(--help --trace)"--trace'[Enable debugging output on stderr]' \
409
"(--help --nodelay)"--nodelay'[Do not queue up or wait for a backoffice job]' \
410
"(--help --nolease)"--nolease'[Always run backoffice]' \
411
'(- *)'--help'[Show help and exit]' \
412
'*:fossils:($(__fossil_repos))'
413
414
;;
415
(backup)
416
_arguments \
417
"(--help --overwrite)"--overwrite'[OK to overwrite an existing file]' \
418
"(--help -R)"-R'[NAME Filename of the repository to backup]:fossils:($(__fossil_repos))' \
419
'(- *)'--help'[Show help and exit]' \
420
'1:file:_files'
421
422
;;
423
(bisect)
424
__fossil_bisect
425
426
;;
427
(branch)
428
__fossil_branch
429
430
;;
431
(bundle)
432
__fossil_bundle
433
434
;;
435
(cache)
436
__fossil_cache
437
438
;;
439
(cat)
440
_arguments \
441
"(--help -R --repository)"{-R,--repository}'[FILE Extract artifacts from repository FILE]:fossils:($(__fossil_repos))' \
442
"(--help -r)"-r'[VERSION The specific check-in containing the file]:version:' \
443
'(- *)'--help'[Show help and exit]' \
444
'*:files:_files'
445
446
;;
447
(cgi)
448
_arguments \
449
'(- *)'--help'[Show help and exit]' \
450
'::cgi:' \
451
':file:_files'
452
453
;;
454
(changes|status)
455
_arguments \
456
"(--help --abs-paths)"--abs-paths'[Display absolute pathnames]' \
457
"(--help --rel-paths)"--rel-paths'[Display pathnames relative to the current directory]' \
458
"(--help --hash)"--hash'[Verify file status using hashing]' \
459
"(--help --case-sensitive)"--case-sensitive'[BOOL Override case-sensitive setting]:bool:(yes no)' \
460
"(--help --dotfiles)"--dotfiles'[Include unmanaged files beginning with a dot]' \
461
"(--help --ignore)"--ignore'[CSG Ignore unmanaged files matching CSG glob patterns]:pattern:' \
462
"(--help --header)"--header'[Identify the repository if report is non-empty.]' \
463
"(--help -v --verbose)"{-v,--verbose}'[Say "(none)" if the change report is empty]' \
464
"(--help --classify)"--classify'[Start each line with the file'"'"'s change type]' \
465
"(--help --no-classify)"--no-classify'[Do not print file change types]' \
466
"(--help --edited)"--edited'[Display edited, merged, and conflicted files]' \
467
"(--help --updated)"--updated'[Display files updated by merge/integrate]' \
468
"(--help --changed)"--changed'[Combination of --edited and --updated]' \
469
"(--help --missing)"--missing'[Display missing files]' \
470
"(--help --added)"--added'[Display added files]' \
471
"(--help --deleted)"--deleted'[Display deleted files]' \
472
"(--help --renamed)"--renamed'[Display renamed files]' \
473
"(--help --conflict)"--conflict'[Display files having merge conflicts]' \
474
"(--help --meta)"--meta'[Display files with metadata changes]' \
475
"(--help --unchanged)"--unchanged'[Display unchanged files]' \
476
"(--help --all)"--all'[Display all managed files]' \
477
"(--help --extra)"--extra'[Display unmanaged files]' \
478
"(--help --differ)"--differ'[Display modified and extra files]' \
479
"(--help --merge)"--merge'[Display merge contributors]' \
480
"(--help --no-merge)"--no-merge'[Do not display merge contributors]' \
481
'(- *)'--help'[Show help and exit]' \
482
'*:files:_files'
483
484
;;
485
(checkout|co)
486
_arguments \
487
"(--help --force)"--force'[Ignore edited files in the current checkout]' \
488
"(--help --keep)"--keep'[Only update the manifest and manifest.uuid files]' \
489
"(--help --force-missing)"--force-missing'[Force checkout even if content is missing]' \
490
"(--help --setmtime)"--setmtime'[Set timestamps of all files to match their SCM-side]' \
491
'(- *)'--help'[Show help and exit]' \
492
'*:files:_files'
493
494
;;
495
(ci|commit)
496
_arguments \
497
"(--help --allow-conflict)"--allow-conflict'[Allow unresolved merge conflicts]' \
498
"(--help --allow-empty)"--allow-empty'[Allow a commit with no changes]' \
499
"(--help --allow-fork)"--allow-fork'[Allow the commit to fork]' \
500
"(--help --allow-older)"--allow-older'[Allow a commit older than its ancestor]' \
501
"(--help --baseline)"--baseline'[Use a baseline manifest in the commit process]' \
502
"(--help --bgcolor)"--bgcolor'[COLOR Apply COLOR to this one check-in only]:color:' \
503
"(--help --branch)"--branch'[NEW-BRANCH-NAME check in to this new branch]:new branch:' \
504
"(--help --branchcolor)"--branchcolor'[COLOR Apply given COLOR to the branch]:color:' \
505
"(--help --close)"--close'[Close the branch being committed]' \
506
"(--help --date-override)"--date-override'[DATETIME DATE to use instead of '"'"'now'"'"']:datetime:' \
507
"(--help --delta)"--delta'[Use a delta manifest in the commit process]' \
508
"(--help --hash)"--hash'[Verify file status using hashing]' \
509
"(--help --integrate)"--integrate'[Close all merged-in branches]' \
510
"(--help -m --comment)"{-m,--comment}'[COMMENT Use COMMENT as commit comment]:comment:' \
511
"(--help -M --message-file)"{-M,--message-file}'[FILE Read the commit comment from given file]:file:_files' \
512
"(--help --mimetype)"--mimetype'[MIMETYPE Mimetype of check-in comment]:mimetype:' \
513
"(--help -n --dry-run)"{-n,--dry-run}'[If given, display instead of run actions]' \
514
"(--help --no-prompt)"--no-prompt'[Assume NO for every question]' \
515
"(--help --no-warnings)"--no-warnings'[Omit all warnings about file contents]' \
516
"(--help --no-verify)"--no-verify'[Do not run before-commit hooks]' \
517
"(--help --nosign)"--nosign'[Do not attempt to sign this commit with gpg]' \
518
"(--help --override-lock)"--override-lock'[Allow a check-in even though parent is locked]' \
519
"(--help --private)"--private'[Do not sync changes and their descendants]' \
520
"(--help --tag)"--tag'[TAG-NAME Assign given tag TAG-NAME to the check-in]:tag:($(__fossil_tags))' \
521
"(--help --trace)"--trace'[Debug tracing]' \
522
"(--help --user-override)"--user-override'[USER Use USER instead of the current default]:user:($(__fossil_users))' \
523
'(- *)'--help'[Show help and exit]' \
524
'*:files:_files'
525
526
;;
527
(clean)
528
_arguments \
529
${_fossil_clean_options[@]} \
530
'*:files:_files'
531
532
;;
533
(clone)
534
_arguments \
535
"(--help --admin-user -A)"{--admin-user,-A}'[USERNAME Make USERNAME the administrator]:user:($(__fossil_users))' \
536
"(--help --httpauth -B)"{--httpauth,-B}'[USER:PASS Add HTTP Basic Authorization to requests]:user pass:' \
537
"(--help --nocompress)"--nocompress'[Omit extra delta compression]' \
538
"(--help --once)"--once'[Don'"'"'t remember the URI]' \
539
"(--help --private)"--private'[Also clone private branches]' \
540
"(--help --save-http-password)"--save-http-password'[Remember the HTTP password without asking]' \
541
"(--help --ssh-command -c)"{--ssh-command,-c}'[SSH Use SSH as the "ssh" command]:ssh command:' \
542
"(--help --ssl-identity)"--ssl-identity'[FILENAME Use the SSL identity if requested by the server]:file:_files' \
543
"(--help -u --unversioned)"{-u,--unversioned}'[Also sync unversioned content]' \
544
"(--help -v --verbose)"{-v,--verbose}'[Show more statistics in output]' \
545
'(- *)'--help'[Show help and exit]' \
546
'1:uri:__fossil_urls' \
547
'2:file:_files'
548
549
;;
550
(close)
551
_arguments \
552
"(--help --force -f)"{--force,-f}'[Close a check out with uncommitted changes]' \
553
'(- *)'--help'[Show help and exit]'
554
555
;;
556
(configuration)
557
__fossil_configuration
558
559
;;
560
(dbstat)
561
_arguments \
562
${_fossil_dbstat_options[@]} \
563
'(- *)'--help'[Show help and exit]'
564
565
;;
566
(deconstruct)
567
_arguments \
568
"(--help -R --repository)"{-R,--repository}'[REPOSITORY Deconstruct given REPOSITORY]:fossils:($(__fossil_repos))' \
569
"(--help -K --keep-rid1)"{-K,--keep-rid1}'[Save the filename of the artifact with RID=1]' \
570
"(--help -L --prefixlength)"{-L,--prefixlength}'[N Set the length of the names of the DESTINATION]:number:' \
571
"(--help --private)"--private'[Include private artifacts]' \
572
"(--help -P --keep-private)"{-P,--keep-private}'[Save the list of private artifacts to .private]' \
573
'(- *)'--help'[Show help and exit]' \
574
'1:destination:_files -/'
575
576
;;
577
(delete|forget|rm)
578
_arguments \
579
"(--help --soft)"--soft'[Skip removing files from the checkout]' \
580
"(--help --hard)"--hard'[Remove files from the checkout]' \
581
"(--help --case-sensitive)"--case-sensitive'[BOOL Override the case-sensitive setting]:bool:(yes no)' \
582
"(--help -n --dry-run)"{-n,--dry-run}'[If given, display instead of run actions]' \
583
"(--help --reset)"--reset'[Reset the DELETED state of a checkout]' \
584
"(--help --verbose -v)"{--verbose,-v}'[Outputs information about each --reset file]' \
585
'(- *)'--help'[Show help and exit]' \
586
'*:files:_files'
587
588
;;
589
(descendants)
590
_arguments \
591
"(--help -R --repository)"{-R,--repository}'[FILE Extract info from repository FILE]:fossils:($(__fossil_repos))' \
592
"(--help -W --width)"{-W,--width}'[NUM Width of lines]:number:' \
593
'(- *)'--help'[Show help and exit]' \
594
'1::check-in:'
595
596
;;
597
(diff|gdiff)
598
_arguments \
599
${_fossil_diff_options[@]} \
600
'(- *)'--help'[Show help and exit]' \
601
'*:files:_files'
602
603
;;
604
(export)
605
_arguments \
606
'(- *)'--help'[Show help and exit]'
607
608
;;
609
(extras)
610
_arguments \
611
${_fossil_extras_options[@]} \
612
'(- *)'--help'[Show help and exit]' \
613
'*:files:_files -/'
614
615
;;
616
(finfo)
617
_arguments \
618
"(--help -b --brief)"{-b,--brief}'[Display a brief (one line / revision) summary]' \
619
"(--help --case-sensitive)"--case-sensitive'[BOOL Enable or disable case-sensitive filenames]:bool:(yes no)' \
620
"(--help -l --log)"{-l,--log}'[Select log mode (the default)]' \
621
"(--help -n --limit)"{-n,--limit}'[N Display only the first N changes]:number:' \
622
"(--help --offset)"--offset'[P Skip P changes]:number:' \
623
"(--help -p --print)"{-p,--print}'[Select print mode]' \
624
"(--help -r --revision)"{-r,--revision}'[R Print the given revision]:version:' \
625
"(--help -s --status)"{-s,--status}'[Select status mode (print a status indicator for FILE)]' \
626
"(--help -W --width)"{-W,--width}'[NUM Width of lines]:number:' \
627
'(- *)'--help'[Show help and exit]' \
628
'1:file:_files'
629
630
;;
631
(fts-config)
632
__fossil_fts_config
633
634
;;
635
(git)
636
__fossil_git
637
638
;;
639
(grep)
640
_arguments \
641
"(--help -c --count)"{-c,--count}'[Suppress normal output; print count of files]' \
642
"(--help -i --ignore-case)"{-i,--ignore-case}'[Ignore case]' \
643
"(--help -l --files-with-matches)"{-l,--files-with-matches}'[List only hash for each match]' \
644
"(--help --once)"--once'[Stop searching after the first match]' \
645
"(--help -s --no-messages)"{-s,--no-messages}'[Suppress error messages]' \
646
"(--help -v --invert-match)"{-v,--invert-match}'[Invert the sense of matching]' \
647
"(--help --verbose)"--verbose'[Show each file as it is analyzed]' \
648
'(- *)'--help'[Show help and exit]' \
649
'1:pattern:' \
650
'*:files:_files'
651
652
;;
653
(hash-policy)
654
_arguments \
655
'(- *)'--help'[Show help and exit]' \
656
'1::policy:(sha1 auto sha3 sha3-only shun-sha1)'
657
658
;;
659
(help)
660
_arguments \
661
"(- :)"{-a,--all}'[List both common and auxiliary commands]' \
662
"(- :)"{-o,--options}'[List command-line options common to all commands]' \
663
"(- :)"{-s,--setting}'[List setting names]' \
664
"(- :)"{-t,--test}'[List unsupported "test" commands]' \
665
"(- :)"{-x,--aux}'[List only auxiliary commands]' \
666
"(- :)"{-w,--www}'[List all web pages]' \
667
"(- :):all commands:($(__fossil_all_commands))" \
668
"(- *)"--html'[Format output as HTML rather than plain text]'
669
670
;;
671
(hook)
672
__fossil_hook
673
674
;;
675
(http)
676
_arguments \
677
"(--help --baseurl)"--baseurl'[URL Base URL (useful with reverse proxies)]:url:__fossil_urls' \
678
"(--help --extroot)"--extroot'[DIR Document root for the /ext extension mechanism]:file:_files -/' \
679
"(--help --files)"--files'[GLOB Comma-separate glob patterns for static file to serve]:pattern:' \
680
"(--help --host)"--host'[NAME Specify hostname of the server]:name:' \
681
"(--help --https)"--https'[Signal a request coming in via https]' \
682
"(--help --in)"--in'[FILE Take input from FILE instead of standard input]:file:_files' \
683
"(--help --ipaddr)"--ipaddr'[ADDR Assume the request comes from the given IP address]:address:' \
684
"(--help --jsmode)"--jsmode'[MODE Determine how JavaScript is delivered with pages]:mode:(inline separate bundled)' \
685
"(--help --localauth)"--localauth'[Enable automatic login for local connections]' \
686
"(--help --nocompress)"--nocompress'[Do not compress HTTP replies]' \
687
"(--help --nodelay)"--nodelay'[Omit backoffice processing if it would delay process exit]' \
688
"(--help --nojail)"--nojail'[Drop root privilege but do not enter the chroot jail]' \
689
"(--help --nossl)"--nossl'[Signal that no SSL connections are available]' \
690
"(--help --notfound)"--notfound'[URL Use URL as "HTTP 404, object not found" page]:url:__fossil_urls' \
691
"(--help --out)"--out'[FILE Write results to FILE instead of to standard output]:file:_files' \
692
"(--help --repolist)"--repolist'[If REPOSITORY is directory, URL "/" lists all repos]' \
693
"(--help --scgi)"--scgi'[Interpret input as SCGI rather than HTTP]' \
694
"(--help --skin)"--skin'[LABEL Use override skin LABEL]:label:' \
695
"(--help --th-trace)"--th-trace'[Trace TH1 execution (for debugging purposes)]' \
696
"(--help --usepidkey)"--usepidkey'[Use saved encryption key from parent process]' \
697
'(- *)'--help'[Show help and exit]' \
698
'1::fossils:_files'
699
700
;;
701
(import)
702
_arguments \
703
"(--help --git)"--git'[Import from the git-fast-export file format (default)]' \
704
"(--help --import-marks)"--import-marks'[FILE Restore marks table from FILE]:file:_files' \
705
"(--help --export-marks)"--export-marks'[FILE Save marks table to FILE]:files:_files' \
706
"(--help --rename-master)"--rename-master'[NAME Renames the master branch to NAME]:name:' \
707
"(--help --use-author)"--use-author'[Uses author as the committer]:user:($(__fossil_users))' \
708
"(--help --svn)"--svn'[Import from the svnadmin-dump file format]' \
709
"(--help --trunk)"--trunk'[FOLDER Name of trunk folder]:file:_files -/' \
710
"(--help --branches)"--branches'[FOLDER Name of branches folder]:file:_files -/' \
711
"(--help --tags)"--tags'[FOLDER Name of tags folder]:file:_files -/' \
712
"(--help --base)"--base'[PATH Path to project root in repository]:file:_files' \
713
"(--help --flat)"--flat'[The whole dump is a single branch]' \
714
"(--help --rev-tags)"--rev-tags'[Tag each revision, implied by -i]' \
715
"(--help --no-rev-tags)"--no-rev-tags'[Disables tagging effect of -i]' \
716
"(--help --rename-rev)"--rename-rev'[PAT Rev tag names, default "svn-rev-%"]:pattern:' \
717
"(--help --ignore-tree)"--ignore-tree'[DIR Ignores subtree rooted at DIR]:file:_files -/' \
718
"(--help -i --incremental)"{-i,--incremental}'[Allow importing into an existing repository]' \
719
"(--help -f --force)"{-f,--force}'[Overwrite repository if already exists]' \
720
"(--help -q --quiet)"{-q,--quiet}'[Omit progress output]' \
721
"(--help --no-rebuild)"--no-rebuild'[Skip the "rebuilding metadata" step]' \
722
"(--help --no-vacuum)"--no-vacuum'[Skip the final VACUUM of the database file]' \
723
"(--help --rename-trunk)"--rename-trunk'[NAME use NAME as name of imported trunk branch]:name:' \
724
"(--help --rename-branch)"--rename-branch'[PAT Rename all branch names using PAT pattern]:pattern:' \
725
"(--help --rename-tag)"--rename-tag'[PAT Rename all tag names using PAT pattern]:pattern:' \
726
"(--help --admin-user -A)"{--admin-user,-A}'[NAME Use NAME for the admin user]:user:($(__fossil_users))' \
727
'(- *)'--help'[Show help and exit]' \
728
'*:files:_files'
729
730
;;
731
(info)
732
_arguments \
733
"(--help -R --repository)"{-R,--repository}'[FILE Extract info from repository FILE]:fossils:($(__fossil_repos))' \
734
"(--help -v --verbose)"{-v,--verbose}'[Show extra information about repositories]' \
735
'(- *)'--help'[Show help and exit]' \
736
'1:fossils:($(__fossil_repos))'
737
738
;;
739
(init|new)
740
_arguments \
741
"(--help --template)"--template'[FILE Copy settings from repository file]:file:_files' \
742
"(--help --admin-user -A)"{--admin-user,-A}'[USERNAME Select given USERNAME as admin user]:user:($(__fossil_users))' \
743
"(--help --date-override)"--date-override'[DATETIME Use DATETIME as time of the initial check-in]:datetime:(now)' \
744
"(--help --sha1)"--sha1'[Use an initial hash policy of "sha1"]' \
745
'(- *)'--help'[Show help and exit]' \
746
'1:file:_files'
747
748
;;
749
(json)
750
__fossil_json
751
752
;;
753
(leaves)
754
_arguments \
755
"(--help -a --all)"{-a,--all}'[Show ALL leaves]' \
756
"(--help --bybranch)"--bybranch'[Order output by branch name]' \
757
"(--help -c --closed)"{-c,--closed}'[Show only closed leaves]' \
758
"(--help -m --multiple)"{-m,--multiple}'[Show only cases with multiple leaves on a single branch]' \
759
"(--help --recompute)"--recompute'[Recompute the "leaf" table in the repository DB]' \
760
"(--help -W --width)"{-W,--width}'[NUM Width of lines (default is to auto-detect)]:number:' \
761
'(- *)'--help'[Show help and exit]'
762
763
;;
764
(login-group)
765
__fossil_login_group
766
767
;;
768
(ls)
769
_arguments \
770
"(--help --age)"--age'[Show when each file was committed]' \
771
"(--help -v --verbose)"{-v,--verbose}'[Provide extra information about each file]' \
772
"(--help -t)"-t'[Sort output in time order]' \
773
"(--help -r)"-r'[VERSION The specific check-in to list]:version:' \
774
"(--help -R --repository)"{-R,--repository}'[FILE Extract info from repository FILE]:fossils:($(__fossil_repos))' \
775
'(- *)'--help'[Show help and exit]' \
776
'*:files:_files'
777
778
;;
779
(md5sum)
780
_arguments \
781
'(- *)'--help'[Show help and exit]' \
782
'*:files:_files'
783
784
;;
785
(merge)
786
_arguments \
787
"(--help --backout)"--backout'[Do a reverse cherrypick merge against VERSION]' \
788
"(--help --baseline)"--baseline'[BASELINE Use BASELINE as the "pivot" of the merge instead]:version:' \
789
"(--help --binary)"--binary'[GLOBPATTERN Treat files that match GLOBPATTERN as binary]:pattern:' \
790
"(--help --case-sensitive)"--case-sensitive'[BOOL Override the case-sensitive setting]:bool:(yes no)' \
791
"(--help --cherrypick)"--cherrypick'[Do a cherrypick merge VERSION into the current checkout]' \
792
"(--help -f --force)"{-f,--force}'[Force the merge even if it would be a no-op]' \
793
"(--help --force-missing)"--force-missing'[Force the merge even if there is missing content]' \
794
"(--help --integrate)"--integrate'[Merged branch will be closed when committing]' \
795
"(--help -K --keep-merge-files)"{-K,--keep-merge-files}'[On merge conflict, retain the temporary files]' \
796
"(--help -n --dry-run)"{-n,--dry-run}'[If given, display instead of run actions]' \
797
"(--help -v --verbose)"{-v,--verbose}'[Show additional details of the merge]' \
798
'(- *)'--help'[Show help and exit]' \
799
'1:version:'
800
801
;;
802
(mv|rename)
803
_arguments \
804
"(--help --soft)"--soft'[Skip moving files within the checkout]' \
805
"(--help --hard)"--hard'[Move files within the checkout]' \
806
"(--help --case-sensitive)"--case-sensitive'[BOOL Override the case-sensitive setting]:bool:(yes no)' \
807
"(--help -n --dry-run)"{-n,--dry-run}'[If given, display instead of run actions]' \
808
'(- *)'--help'[Show help and exit]' \
809
'*:files:_files'
810
811
;;
812
(open)
813
_arguments \
814
"(--help --empty)"--empty'[Initialize checkout as being empty, but still connected]' \
815
"(--help --force)"--force'[Continue even if the directory is not empty]' \
816
"(--help --force-missing)"--force-missing'[Force opening a repository with missing content]' \
817
"(--help --keep)"--keep'[Only modify the manifest and manifest.uuid files]' \
818
"(--help --nested)"--nested'[Allow opening a repository inside an opened checkout]' \
819
"(--help --repodir)"--repodir'[DIR Store the clone in DIR]:directory:_files -/' \
820
"(--help --setmtime)"--setmtime'[Set timestamps of all files to match their SCM-side times]' \
821
"(--help --workdir)"--workdir'[DIR Use DIR as the working directory]:directory:_files -/' \
822
'(- *)'--help'[Show help and exit]' \
823
'1:fossils:($(__fossil_repos))' \
824
'::version:'
825
826
;;
827
(pop3d)
828
_arguments \
829
"(--help --logdir)"--logdir'[DIR Create log files inside DIR]:directory:_files -/' \
830
'(- *)'--help'[Show help and exit]' \
831
'1:fossils:($(__fossil_repos))'
832
833
;;
834
(publish)
835
_arguments \
836
'(--help --only)'--only'[Publish only the specific artifacts identified by the tags]' \
837
'(- *)'--help'[Show help and exit]' \
838
'*:tags:($(__fossil_tags))'
839
840
;;
841
(pull)
842
_arguments \
843
"(--help -B --httpauth)"{-B,--httpauth}'[USER:PASS Credentials for the simple HTTP auth protocol]:user pass:' \
844
"(--help --from-parent-project)"--from-parent-project'[Pull content from the parent project]' \
845
"(--help --ipv4)"--ipv4'[Use only IPv4, not IPv6]' \
846
"(--help --once)"--once'[Do not remember URL for subsequent syncs]' \
847
"(--help --private)"--private'[Pull private branches too]' \
848
"(--help --project-code)"--project-code'[CODE Use CODE as the project code]:project code:' \
849
"(--help --proxy)"--proxy'[PROXY Use the specified HTTP proxy]:proxy:' \
850
"(--help -R --repository)"{-R,--repository}'[REPO Local repository to pull into]:fossils:($(__fossil_repos))' \
851
"(--help --ssl-identity)"--ssl-identity'[FILE Local SSL credentials]:ssl credentials:' \
852
"(--help --ssh-command)"--ssh-command'[SSH Use SSH as the "ssh" command]:ssh command:' \
853
"(--help -v --verbose)"{-v,--verbose}'[Additional (debugging) output]' \
854
"(--help --verily)"--verily'[Exchange extra information with the remote]' \
855
'(- *)'--help'[Show help and exit]' \
856
'1:url:__fossil_urls'
857
858
;;
859
(purge)
860
__fossil_purge
861
862
;;
863
(push)
864
_arguments \
865
"(--help -B --httpauth)"{-B,--httpauth}'[USER:PASS Credentials for the simple HTTP auth protocol]:user pass:' \
866
"(--help --ipv4)"--ipv4'[Use only IPv4, not IPv6]' \
867
"(--help --once)"--once'[Do not remember URL for subsequent syncs]' \
868
"(--help --proxy)"--proxy'[PROXY Use the specified HTTP proxy]' \
869
"(--help --private)"--private'[Push private branches too]' \
870
"(--help -R --repository)"{-R,--repository}'[REPO Local repository to push from]:fossils:($(__fossil_repos))' \
871
"(--help --ssl-identity)"--ssl-identity'[FILE Local SSL credentials]:ssl credentials:' \
872
"(--help --ssh-command)"--ssh-command'[SSH Use SSH as the "ssh" command]:ssh command:' \
873
"(--help -v --verbose)"{-v,--verbose}'[Additional (debugging) output]' \
874
"(--help --verily)"--verily'[Exchange extra information with the remote]' \
875
'(- *)'--help'[Show help and exit]' \
876
'1::url:__fossil_urls'
877
878
;;
879
(rebuild)
880
_arguments \
881
${_fossil_rebuild_options[@]} \
882
"(--help --force)"--force'[Force the rebuild to complete even if errors are seen]' \
883
"(--help --randomize)"--randomize'[Scan artifacts in a random order]' \
884
'(- *)'--help'[Show help and exit]' \
885
'1:fossils:($(__fossil_repos))'
886
887
;;
888
(reconstruct)
889
_arguments \
890
"(--help -K --keep-rid1)"{-K,--keep-rid1}'[Read the filename of the artifact with RID=1 from .rid]' \
891
"(--help -P --keep-private)"{-P,--keep-private}'[Mark the artifacts listed in .private as private]' \
892
'(- *)'--help'[Show help and exit]' \
893
'1:file:_files' \
894
'2:directory:_files -/'
895
896
;;
897
(redo|undo)
898
_arguments \
899
"(--help -n --dry-run)"{-n,--dry-run}'[Do not make changes but show what would be done]' \
900
'(- *)'--help'[Show help and exit]' \
901
'*:files:_files'
902
903
;;
904
(remote|remote-url)
905
__fossil_remote
906
907
;;
908
(reparent)
909
_arguments \
910
"(--help --test)"--test'[Make database entries but do not add the tag artifact]' \
911
"(--help -n --dryrun)"{-n,--dryrun}'[Do not actually change the database]' \
912
"(--help --date-override)"--date-override'[DATETIME Set the change time on the control artifact]:datetime:' \
913
"(--help --user-override)"--user-override'[USER Set the user name on the control artifact]:user:($(__fossil_users))' \
914
'(- *)'--help'[Show help and exit]' \
915
'1:check-in:' \
916
'*:parents:'
917
918
;;
919
(revert)
920
_arguments \
921
"(--help -r --revision)"{-r,--revision}'[VERSION Revert to given VERSION]:version:' \
922
'(- *)'--help'[Show help and exit]' \
923
'*:files:_files'
924
925
;;
926
(rss)
927
_arguments \
928
"(--help -type -y)"{-type,-y}'[FLAG]:type:(all ci t w)' \
929
"(--help -limit -n)"{-limit,-n}'[LIMIT The maximum number of items to show]:number:' \
930
"(--help -tkt)"-tkt'[HASH Filters for only those events for the specified ticket]:hash:' \
931
"(--help -tag)"-tag'[TAG Filters for a tag]:tag:($(__fossil_tags))' \
932
"(--help -wiki)"-wiki'[NAME Filters on a specific wiki page]:wiki page:($(__fossil_wiki_pages))' \
933
"(--help -name)"-name'[FILENAME filters for a specific file]:file:_files' \
934
"(--help -url)"-url'[STRING Sets the RSS feed'"'"'s root URL to the given string]:url:__fossil_urls' \
935
'(- *)'--help'[Show help and exit]'
936
937
;;
938
(scrub)
939
_arguments \
940
"(--help --force)"--force'[Do not prompt for confirmation]' \
941
"(--help --private)"--private'[Only private branches are removed from the repository]' \
942
"(--help --verily)"--verily'[Scrub real thoroughly (see above)]' \
943
'(- *)'--help'[Show help and exit]' \
944
'1::fossils:($(__fossil_repos))'
945
946
;;
947
(search)
948
_arguments \
949
"(--help -a --all)"{-a,--all}'[Output all matches, not just best matches]' \
950
"(--help -n --limit)"{-n,--limit}'[N Limit output to N matches]:number:' \
951
"(--help -W --width)"{-W,--width}'[WIDTH Set display width to WIDTH columns]:number:' \
952
'(- *)'--help'[Show help and exit]' \
953
'*:patterns:'
954
955
;;
956
(server|ui)
957
_arguments \
958
${_fossil_server_options[@]} \
959
'1::fossils:($(__fossil_repos))'
960
961
;;
962
(set|settings)
963
_arguments \
964
"(--global)"--global'[Set or unset the given property globally]' \
965
"(--exact)"--exact'[Only consider exact name matches]' \
966
"1:setting:($(__fossil_settings))" \
967
'2:value:'
968
969
;;
970
(sha1sum)
971
_arguments \
972
"(--help -h --dereference)"{-h,--dereference}'[Resolve symbolic links]' \
973
'(- *)'--help'[Show help and exit]' \
974
'*:files:_files'
975
976
;;
977
(sha3sum)
978
_arguments \
979
"(--help --224 --256 --384 --512 --size)"--224'[Compute a SHA3-224 hash]' \
980
"(--help --256 --224 --384 --512 --size)"--256'[Compute a SHA3-256 hash (the default)]' \
981
"(--help --384 --224 --256 --512 --size)"--384'[Compute a SHA3-384 hash]' \
982
"(--help --512 --224 --256 --384 --size)"--512'[Compute a SHA3-512 hash]' \
983
"(--help --size --224 --256 --384 --512 --size)"--size'[N An N-bit hash]:number:' \
984
"(--help -h --dereference)"{-h,--dereference}'[Resolve symbolic links]' \
985
'(- *)'--help'[Show help and exit]' \
986
'*:files:_files'
987
988
;;
989
(shell)
990
_arguments \
991
'(- *)'--help'[Show help and exit]'
992
993
;;
994
(smtpd)
995
_arguments \
996
"(--help --dryrun)"--dryrun'[Do not record any emails in the database]' \
997
"(--help --trace)"--trace'[Print a transcript of the conversation on stderr]' \
998
"(--help --ipaddr)"--ipaddr'[ADDR The SMTP connection originates at ADDR]:address:' \
999
'(- *)'--help'[Show help and exit]' \
1000
'1:fossils:($(__fossil_repos))'
1001
1002
;;
1003
(sql|sqlite3)
1004
_arguments \
1005
"(--help --no-repository)"--no-repository'[Skip opening the repository database]' \
1006
"(--help --readonly)"--readonly'[Open the repository read-only]' \
1007
"(--help -R)"-R'[REPOSITORY Use REPOSITORY as the repository database]:fossils:($(__fossil_repos))' \
1008
'(- *)'--help'[Show help and exit]'
1009
1010
;;
1011
(sqlar)
1012
_arguments \
1013
"(--help -X --exclude)"{-X,--exclude}'[GLOBLIST Comma-separated list of GLOBs of files to exclude]:pattern:' \
1014
"(--help --include)"--include'[GLOBLIST Comma-separated list of GLOBs of files to include]:pattern:' \
1015
"(--help --name)"--name'[DIR The name of the top-level directory in the archive]:directory:_files -/' \
1016
"(--help -R)"-R'[REPOSITORY Specify a Fossil repository]:fossils:($(__fossil_repos))' \
1017
'(- *)'--help'[Show help and exit]' \
1018
'1:version:' \
1019
'2:output file:_files'
1020
1021
;;
1022
(stash)
1023
__fossil_stash
1024
1025
;;
1026
(sync)
1027
_arguments \
1028
"(--help -B --httpauth)"{-B,--httpauth}'[USER:PASS Credentials for the simple HTTP auth protocol]:user pass:' \
1029
"(--help --ipv3)"--ipv4'[Use only IPv4, not IPv6]' \
1030
"(--help --once)"--once'[Do not remember URL for subsequent syncs]' \
1031
"(--help --proxy)"--proxy'[PROXY Use the specified HTTP proxy]:proxy:' \
1032
"(--help --private)"--private'[Sync private branches too]' \
1033
"(--help -R --repository)"{-R,--repository}'[REPO Local repository to sync with]:fossils:($(__fossil_repos))' \
1034
"(--help --ssl-identity)"--ssl-identity'[FILE Local SSL credentials]:ssl credentials:' \
1035
"(--help --ssh-command)"--ssh-command'[SSH Use SSH as the "ssh" command]:ssh command:' \
1036
"(--help -u --unversioned)"{-u,--unversioned}'[Also sync unversioned content]' \
1037
"(--help -v --verbose)"{-v,--verbose}'[Additional (debugging) output]' \
1038
"(--help --verily)"--verily'[Exchange extra information with the remote]' \
1039
'(- *)'--help'[Show help and exit]' \
1040
'1::url:__fossil_urls'
1041
1042
;;
1043
(tag)
1044
__fossil_tag
1045
1046
;;
1047
(tarball)
1048
_arguments \
1049
"(--help -X --exclude)"{-X,--exclude}'[GLOBLIST Comma-separated list of GLOBs of files to exclude]:pattern:' \
1050
"(--help --include)"--include'[GLOBLIST Comma-separated list of GLOBs of files to include]:pattern:' \
1051
"(--help --name)"--name'[DIR The name of the top-level directory in the archive]:directory:_files -/' \
1052
"(--help -R)"-R'[REPOSITORY Specify a Fossil repository]:fossils:($(__fossil_repos))' \
1053
'(- *)'--help'[Show help and exit]' \
1054
'1:version:' \
1055
'2:ouput file:_files'
1056
1057
;;
1058
(ticket)
1059
__fossil_ticket
1060
1061
;;
1062
(timeline)
1063
_arguments \
1064
"(--help -n --limit)"{-n,--limit}'[N Output the first N entries]:number:' \
1065
"(--help -p --path)"{-p,--path}'[PATH Output items affecting PATH only]:path:_files' \
1066
"(--help --offset)"--offset'[P skip P changes]:number:' \
1067
"(--help --sql)"--sql'[Show the SQL used to generate the timeline]' \
1068
"(--help -t --type)"{-t,--type}'[TYPE Output items from the given types only]:type:(ci e t w)' \
1069
"(--help -v --verbose)"{-v,--verbose}'[Output the list of files changed by each commit]' \
1070
"(--help -W --width)"{-W,--width}'[NUM Width of lines (default is to auto-detect)]:number:' \
1071
"(--help -R)"-R'[REPO Specifies the repository db to use]:fossils:($(__fossil_repos))' \
1072
'(- *)'--help'[Show help and exit]' \
1073
'::when:(before after descendants children ancestors parents)' \
1074
'::check-in:' \
1075
'::datetime:'
1076
1077
;;
1078
(tls-config)
1079
__fossil_tls_config
1080
1081
;;
1082
(touch)
1083
_arguments \
1084
"(--help --now -c --checkin -C --checkout)"--now'[Stamp each affected file with the current time]' \
1085
"(--help -c --checkin --now -C --checkout)"{-c,--checkin}'[Stamp with the last modification time]' \
1086
"(--help -C --checkout -c --checkin --now)"{-C,--checkout}'[Stamp with the time of the current checkout]' \
1087
"(--help -g)"-g'[GLOBLIST Comma-separated list of glob patterns]:pattern:' \
1088
"(--help -G)"-G'[GLOBFILE Like -g but reads globs from glob default file]:pattern:' \
1089
"(--help -v -verbose)"{-v,-verbose}'[Outputs extra information about its globs]' \
1090
"(--help -n --dry-run)"{-n,--dry-run}'[Do not touch anything]' \
1091
"(--help -q --quiet)"{-q,--quiet}'[Suppress warnings]' \
1092
'(- *)'--help'[Show help and exit]' \
1093
'*:files:_files'
1094
1095
;;
1096
(unpublished)
1097
_arguments \
1098
"(--help --all)"--all'[Show all artifacts, not just check-ins]' \
1099
'(- *)'--help'[Show help and exit]'
1100
1101
;;
1102
(unset)
1103
_arguments \
1104
"(--global)"--global'[Set or unset the given property globally]' \
1105
"(--exact)"--exact'[Only consider exact name matches]' \
1106
"1:setting:($(__fossil_settings))"
1107
1108
;;
1109
(unversioned|uv)
1110
__fossil_unversioned
1111
1112
;;
1113
(update)
1114
_arguments \
1115
"(--help --case-sensitive)"--case-sensitive'[BOOL Override case-sensitive setting]:bool:(yes no)' \
1116
"(--help --debug)"--debug'[Print debug information on stdout]' \
1117
"(--help --latest)"--latest'[Update to latest version]' \
1118
"(--help --force-missing)"--force-missing'[Force update if missing content after sync]' \
1119
"(--help -n --dry-run)"{-n,--dry-run}'[If given, display instead of run actions]' \
1120
"(--help -v --verbose)"{-v,--verbose}'[Print status information about all files]' \
1121
"(--help -W --width)"{-W,--width}'[WIDTH Width of lines (default is to auto-detect)]:number:' \
1122
"(--help --setmtime)"--setmtime'[Set timestamps of all files to match their SCM-side times]' \
1123
"(--help -K --keep-merge-files)"{-K,--keep-merge-files}'[On merge conflict, retain the temporary files]' \
1124
'(- *)'--help'[Show help and exit]' \
1125
'1::version:' \
1126
'*::files:_files'
1127
1128
;;
1129
(user)
1130
__fossil_user
1131
1132
;;
1133
(version)
1134
_arguments \
1135
"(--help -v --verbose)"{-v,--verbose}'[Additional details about optional features]' \
1136
'(- *)'--help'[Show help and exit]'
1137
1138
;;
1139
(whatis)
1140
_arguments \
1141
"(--help --type)"--type'[TYPE Only find artifacts of TYPE]:type:(ci t w g e)' \
1142
"(--help -v --verbose)"{-v,--verbose}'[Provide extra information (such as the RID)]' \
1143
'(- *)'--help'[Show help and exit]' \
1144
'1:name:'
1145
1146
;;
1147
(wiki)
1148
__fossil_wiki
1149
1150
;;
1151
(zip)
1152
_arguments \
1153
"(--help -X --exclude)"{-X,--exclude}'[GLOBLIST Comma-separated list of GLOBs of files to exclude]:pattern:' \
1154
"(--help --include)"--include'[GLOBLIST Comma-separated list of GLOBs of files to include]:pattern:' \
1155
"(--help --name)"--name'[DIR The name of the top-level directory in the archive]:directory:_files -/' \
1156
"(--help -R)"-R'[REPOSITORY Specify a Fossil repository]:fossils:($(__fossil_repos))' \
1157
'(- *)'--help'[Show help and exit]' \
1158
'1:version:' \
1159
'2:output file:_files'
1160
1161
;;
1162
esac
1163
;;
1164
*)
1165
esac
1166
return 0
1167
}
1168
1169
################################################################################
1170
# Subcommands #
1171
################################################################################
1172
1173
########################################
1174
# fossil alerts #
1175
########################################
1176
function __fossil_alerts_settings() {
1177
fossil alerts settings 2>/dev/null
1178
}
1179
1180
function __fossil_alerts_subscribers() {
1181
fossil alerts subscribers 2>/dev/null
1182
}
1183
1184
function __fossil_alerts() {
1185
local curcontext="$curcontext" state line
1186
typeset -A opt_args
1187
local -a _common_options
1188
1189
_common_options=(
1190
"(--help -R --repository)"{-R,--repository}'[FILE Run command on repository FILE]:fossils:($(__fossil_repos))'
1191
"(-)"--help'[Show help and exit]'
1192
)
1193
1194
_arguments -C \
1195
${_common_options[@]} \
1196
'1:subcommand:->subcommand' \
1197
'*::options:->options'
1198
1199
case $state in
1200
(subcommand)
1201
_values 'subcommand' \
1202
pending reset send settings status subscribers \
1203
test-message unsubscribe
1204
1205
;;
1206
(options)
1207
case $line[1] in
1208
(pending|reset)
1209
_arguments \
1210
${_common_options[@]}
1211
1212
;;
1213
(send)
1214
_arguments \
1215
${_common_options[@]} \
1216
"(--help --digest)"--digest'[Send digests]' \
1217
"(--help --test)"--test'[Write to standard output]'
1218
1219
;;
1220
(set|settings)
1221
_arguments \
1222
${_common_options[@]} \
1223
'1::name:($(__fossil_alerts_settings))' \
1224
'2::value:'
1225
1226
;;
1227
(subscribers)
1228
_arguments \
1229
${_common_options[@]} \
1230
'1::pattern:'
1231
1232
;;
1233
(test-message)
1234
_arguments \
1235
${_common_options[@]} \
1236
"(--help --body)"--body'[FILENAME]:file:_files' \
1237
"(--help --smtp-trace)"--smtp-trace'[]' \
1238
"(--help --stdout)"--stdout'[]' \
1239
"(--help --subject -S)"{--subject,-S}'[SUBJECT]:subject:' \
1240
'1:recipient:'
1241
1242
;;
1243
unsubscribe)
1244
_arguments \
1245
${_common_options[@]} \
1246
'1:email:($(__fossil_alerts_subscribers))'
1247
1248
;;
1249
*)
1250
_message 'no more arguments'
1251
1252
;;
1253
esac
1254
;;
1255
esac
1256
return 0
1257
}
1258
1259
########################################
1260
# fossil all #
1261
########################################
1262
function __fossil_all() {
1263
local curcontext="$curcontext" state line
1264
typeset -A opt_args
1265
local -a _common_options
1266
1267
_common_options=(
1268
"(-)"--help'[Show help and exit]'
1269
"(--help --showfile)"--showfile'[Show the repository or checkout being operated upon]'
1270
"(--help --dontstop)"--dontstop'[Continue with other repositories even after an error]'
1271
"(--help --dry-run)"--dry-run'[If given, display instead of run actions]'
1272
)
1273
1274
_arguments -C \
1275
${_common_options[@]} \
1276
'1:subcommand:->subcommand' \
1277
'*::options:->options'
1278
1279
case $state in
1280
(subcommand)
1281
_values 'subcommand' \
1282
backup cache changes clean config dbstat extras fts-config info \
1283
pull push rebuild sync set unset server ui add ignore list ls
1284
1285
;;
1286
(options)
1287
case $line[1] in
1288
(backup)
1289
_arguments \
1290
${_common_options[@]} \
1291
'1:output directory:_files -/'
1292
1293
;;
1294
(cache)
1295
__fossil_cache
1296
1297
;;
1298
(clean)
1299
_arguments \
1300
${_common_options[@]} \
1301
${_fossil_clean_options[@]} \
1302
"(--help --whatif)"--whatif'[Review the files to be deleted]'
1303
1304
;;
1305
(config)
1306
_arguments \
1307
${_common_options[@]} \
1308
'1:what:(pull)' \
1309
'2:area:'
1310
1311
;;
1312
(dbstat)
1313
_arguments \
1314
${_fossil_dbstat_options[@]}
1315
1316
;;
1317
(extras)
1318
_arguments \
1319
${_fossil_extras_options[@]}
1320
1321
;;
1322
(fts-config)
1323
__fossil_fts_config
1324
1325
;;
1326
(pull|push)
1327
_arguments \
1328
${_common_options[@]} \
1329
"(--help -v --verbose)"{-v,--verbose}'[Additional (debugging) output]'
1330
1331
;;
1332
(rebuild)
1333
_arguments \
1334
${_common_options[@]} \
1335
${_fossil_rebuild_options[@]}
1336
1337
;;
1338
(sync)
1339
_arguments \
1340
${_common_options[@]} \
1341
"(--help -u --unversioned)"{-u,--unversioned}'[Also sync unversioned content]' \
1342
"(--help -v --verbose)"{-v,--verbose}'[Additional (debugging) output]'
1343
1344
;;
1345
(set|unset)
1346
_arguments \
1347
${_common_options[@]} \
1348
"1:setting:($(__fossil_settings))" \
1349
'2:value:' \
1350
"(--help --global)"--global'[Set or unset the given property globally]' \
1351
"(--help --exact)"--exact'[Only consider exact name matches]'
1352
1353
;;
1354
(server|ui)
1355
_arguments \
1356
${_common_options[@]} \
1357
${_fossil_server_options[@]}
1358
1359
;;
1360
(add)
1361
_arguments \
1362
${_common_options[@]} \
1363
'*:fossils:($(__fossil_repos))'
1364
1365
;;
1366
(ignore)
1367
_arguments \
1368
${_common_options[@]} \
1369
"(--help -c --ckout)"{-c,--ckout}'[Ignore local checkouts instead of repositories]' \
1370
'*:fossils:($(__fossil_repos))'
1371
1372
;;
1373
(list|ls)
1374
_arguments \
1375
"(-)"--help'[Show help and exit]' \
1376
"(--help -c --ckout)"{-c,--ckout}'[List local checkouts instead of repositories]'
1377
1378
;;
1379
*)
1380
_message 'no more arguments'
1381
1382
;;
1383
esac
1384
;;
1385
esac
1386
return 0
1387
}
1388
1389
1390
########################################
1391
# fossil bisect #
1392
########################################
1393
function __fossil_bisect() {
1394
local curcontext="$curcontext" state line
1395
typeset -A opt_args
1396
local -a _common_options
1397
1398
_common_options=(
1399
"(-)"--help'[Show help and exit]'
1400
)
1401
1402
_arguments -C \
1403
${_common_options[@]} \
1404
'1:subcommand:->subcommand' \
1405
'*::options:->options'
1406
1407
case $state in
1408
(subcommand)
1409
_values 'subcommand' \
1410
bad good log chart next options reset skip vlist ls status ui undo
1411
1412
;;
1413
(options)
1414
case $line[1] in
1415
(bad|good|skip)
1416
_arguments \
1417
'1:version:'
1418
1419
;;
1420
(options)
1421
_arguments \
1422
"1::name:($(fossil bisect options 2>/dev/null | awk '{print $1}'))" \
1423
'2::value:'
1424
1425
;;
1426
(vlist|ls|status)
1427
_arguments \
1428
"(-a --all)"{-a,--all}'[List all]'
1429
1430
;;
1431
(ui)
1432
_arguments \
1433
${_fossil_server_options[@]}
1434
1435
;;
1436
*)
1437
_message 'no more arguments'
1438
1439
;;
1440
esac
1441
;;
1442
esac
1443
return 0
1444
}
1445
1446
########################################
1447
# fossil branch #
1448
########################################
1449
function __fossil_branch() {
1450
local curcontext="$curcontext" state line
1451
typeset -A opt_args
1452
local -a _common_options
1453
1454
_common_options=(
1455
"(-)"--help'[Show help and exit]'
1456
"(--help -R --repository)"{-R,--repository}'[FILE Run commands on repository FILE]:fossils:($(__fossil_repos))'
1457
)
1458
1459
_arguments -C \
1460
${_common_options[@]} \
1461
'1:subcommand:->subcommand' \
1462
'*::options:->options'
1463
1464
case $state in
1465
(subcommand)
1466
_values 'subcommand' \
1467
current info list ls new
1468
1469
;;
1470
(options)
1471
case $line[1] in
1472
(current)
1473
_arguments \
1474
${_common_options[@]}
1475
1476
;;
1477
(info)
1478
_arguments \
1479
${_common_options[@]} \
1480
':branch:($(__fossil_branches))'
1481
1482
;;
1483
(list|ls)
1484
_arguments \
1485
${_common_options[@]} \
1486
"(--help -a --all)"{-a,--all}'[List all branches]' \
1487
"(--help -c --closed)"{-c,--closed}'[List closed branches]' \
1488
"(--help -r)"-r'[Reverse the sort order]' \
1489
"(--help -t)"-t'[Show recently changed branches first]'
1490
1491
;;
1492
(new)
1493
_arguments \
1494
${_common_options[@]} \
1495
"(--help --private)"--private'[Branch is private]' \
1496
"(--help --bgcolor)"--bgcolor'[COLOR Use COLOR instead of automatic background]:color:' \
1497
"(--help --nosign)"--nosign'[Do not sign contents on this branch]' \
1498
"(--help --date-override)"--date-override'[DATE Use DATE instead of '"'"'now'"'"']:date:(now)' \
1499
"(--help --user-override)"--user-override'[USER Use USER instead of the default]:user:($(__fossil_users))' \
1500
'1:branch name:' \
1501
'2:base check-in:'
1502
1503
;;
1504
*)
1505
_message 'no more arguments'
1506
1507
;;
1508
esac
1509
;;
1510
esac
1511
return 0
1512
}
1513
1514
########################################
1515
# fossil bundle #
1516
########################################
1517
function __fossil_bundle() {
1518
local curcontext="$curcontext" state line
1519
typeset -A opt_args
1520
local -a _common_options
1521
1522
_common_options=(
1523
"(-)"--help'[Show help and exit]'
1524
)
1525
1526
_arguments -C \
1527
${_common_options[@]} \
1528
'1:subcommand:->subcommand' \
1529
'*::options:->options'
1530
1531
case $state in
1532
(subcommand)
1533
_values 'subcommand' \
1534
append cat export extend import ls purge
1535
1536
;;
1537
(options)
1538
case $line[1] in
1539
(append)
1540
_arguments \
1541
'1:bundle:_files' \
1542
'*:files:_files'
1543
1544
;;
1545
(bundle)
1546
_arguments \
1547
'1:what:(cat)' \
1548
'2:bundle:_files' \
1549
'*:hashes:'
1550
1551
;;
1552
(export)
1553
_arguments \
1554
"(--branch)"--branch'[BRANCH Package all check-ins on BRANCH]:branch:($(__fossil_branches))' \
1555
"(--from)"--from'[TAG1 --to TAG2 Package check-ins starting with TAG1]:tag:($(__fossil_tags))' \
1556
"(--to)"--to'[TAG2 Package check-ins up to TAG2]:tag:($(__fossil_tags))' \
1557
"(--checkin)"--checkin'[TAG Package the single check-in TAG]:tag:($(__fossil_tags))' \
1558
"(--standalone)"--standalone'[Do no use delta-encoding against]' \
1559
'1:bundle:_files'
1560
1561
;;
1562
(extend|ls|purge)
1563
_arguments \
1564
'1:bundle:_files'
1565
1566
;;
1567
(import)
1568
_arguments \
1569
"(--publish)"--publish'[Make the import public]' \
1570
"(--force)"--force'[Import even if project codes do not match]' \
1571
'1:bundle:_files'
1572
1573
;;
1574
*)
1575
_message 'no more arguments'
1576
1577
;;
1578
esac
1579
;;
1580
esac
1581
return 0
1582
}
1583
1584
########################################
1585
# fossil cache #
1586
########################################
1587
function __fossil_cache_subcommand {
1588
}
1589
1590
function __fossil_cache() {
1591
local curcontext="$curcontext" state line
1592
typeset -A opt_args
1593
local -a _common_options
1594
1595
_common_options=(
1596
"(-)"--help'[Show help and exit]'
1597
)
1598
1599
_arguments -C \
1600
${_common_options[@]} \
1601
'1:subcommand:->subcommand' \
1602
'*::options:->options'
1603
1604
case $state in
1605
(subcommand)
1606
_values 'subcommand' \
1607
clear init list ls status
1608
1609
;;
1610
*)
1611
_message 'no more arguments'
1612
1613
;;
1614
esac
1615
return 0
1616
}
1617
1618
########################################
1619
# fossil configuration #
1620
########################################
1621
function __fossil_configuration() {
1622
local curcontext="$curcontext" state line
1623
typeset -A opt_args
1624
local -a _common_options
1625
1626
_common_options=(
1627
"(--help -R --repository)"{-R,--repository}'[FILE Extract info from repository FILE]:fossils:($(__fossil_repos))'
1628
"(-)"--help'[Show help and exit]'
1629
)
1630
1631
_arguments -C \
1632
${_common_options[@]} \
1633
'1:method:->method' \
1634
'*::options:->options'
1635
1636
case $state in
1637
(method)
1638
_values 'method' \
1639
export import merge pull push reset sync
1640
1641
;;
1642
(options)
1643
case $line[1] in
1644
(export)
1645
_arguments \
1646
${_common_options[@]} \
1647
'1:area:__fossil_areas' \
1648
'2:file:_files'
1649
1650
;;
1651
(import|merge)
1652
_arguments \
1653
${_common_options[@]} \
1654
'1:file:_files'
1655
1656
;;
1657
(pull)
1658
_arguments \
1659
${_common_options[@]} \
1660
"(--help --overwrite)"--overwrite'[Replace local settings]' \
1661
'1:area:__fossil_areas' \
1662
'2::url:__fossil_urls'
1663
1664
;;
1665
(push|sync)
1666
_arguments \
1667
${_common_options[@]} \
1668
'1:area:__fossil_areas' \
1669
'2::url:__fossil_urls'
1670
1671
;;
1672
(reset)
1673
_arguments \
1674
${_common_options[@]} \
1675
'1:area:__fossil_areas'
1676
1677
;;
1678
*)
1679
_message 'no more arguments'
1680
1681
;;
1682
esac
1683
;;
1684
esac
1685
return 0
1686
}
1687
1688
########################################
1689
# fossil fts-config #
1690
########################################
1691
function __fossil_fts_config() {
1692
local curcontext="$curcontext" state line
1693
typeset -A opt_args
1694
local -a _common_options
1695
1696
_common_options=(
1697
"(-)"--help'[Show help and exit]'
1698
)
1699
1700
_arguments -C \
1701
${_common_options[@]} \
1702
'1:subcommand:->subcommand' \
1703
'*::options:->options'
1704
1705
case $state in
1706
(subcommand)
1707
_values 'subcommand' \
1708
reindex index enable disable stemmer
1709
1710
;;
1711
(options)
1712
case $line[1] in
1713
index|stemmer)
1714
_arguments \
1715
"(- *):setting:(on off)"
1716
1717
;;
1718
enable|disable)
1719
_arguments \
1720
"(- *):setting:(cdtwe)"
1721
1722
;;
1723
*)
1724
_message 'no more arguments'
1725
1726
;;
1727
esac
1728
;;
1729
esac
1730
return 0
1731
}
1732
1733
########################################
1734
# fossil git #
1735
########################################
1736
function __fossil_git() {
1737
local curcontext="$curcontext" state line
1738
typeset -A opt_args
1739
local -a _common_options
1740
1741
_common_options=(
1742
"(-)"--help'[Show help and exit]'
1743
)
1744
1745
_arguments -C \
1746
${_common_options[@]} \
1747
'1:subcommand:->subcommand' \
1748
'*::options:->options'
1749
1750
case $state in
1751
subcommand)
1752
_values 'subcommand' \
1753
export import status
1754
1755
;;
1756
options)
1757
case $line[1] in
1758
(export)
1759
_arguments \
1760
${_common_options[@]} \
1761
"(--help --autopush)"--autopush'[URL Automatically do a '"'"'git push'"'"' to URL]:url:__fossil_urls' \
1762
"(--help --debug)"--debug'[FILE Write fast-export text to FILE]:file:_files' \
1763
"(--help --force -f)"{--force,-f}'[Do the export even if nothing has changed]' \
1764
"(--help --limit)"--limit'[N Add no more than N new check-ins to MIRROR]:number:' \
1765
"()*"{--quiet,-q}'[Reduce output. Repeat for even less output]' \
1766
"(--verbose -v)"{--verbose,-v}'[More output]'
1767
1768
;;
1769
(import)
1770
_arguments \
1771
${_common_options[@]} \
1772
':url:__fossil_urls'
1773
1774
;;
1775
(status)
1776
_arguments \
1777
${_common_options[@]}
1778
1779
;;
1780
*)
1781
_message 'no more arguments'
1782
1783
;;
1784
esac
1785
;;
1786
esac
1787
return 0
1788
}
1789
1790
########################################
1791
# fossil hook #
1792
########################################
1793
function __fossil_hook() {
1794
local curcontext="$curcontext" state line
1795
typeset -A opt_args
1796
local -a _common_options
1797
1798
_common_options=(
1799
"(-)"--help'[Show help and exit]'
1800
)
1801
1802
_arguments -C \
1803
${_common_options[@]} \
1804
'1:subcommand:->subcommand' \
1805
'*::options:->options'
1806
1807
case $state in
1808
(subcommand)
1809
_values 'subcommand' \
1810
add delete edit list status test
1811
1812
;;
1813
(options)
1814
case $line[1] in
1815
(add)
1816
_arguments \
1817
${_common_options[@]} \
1818
"(--help --command)"--command'[COMMAND]:command:' \
1819
"(--help --type)"--type'[TYPE]:type:' \
1820
"(--help --sequence)"--sequence'[NUM]:number:'
1821
1822
;;
1823
(delete)
1824
_arguments \
1825
${_common_options[@]} \
1826
'*:IDs:'
1827
1828
;;
1829
(edit)
1830
_arguments \
1831
${_common_options[@]} \
1832
"(--help --command)"--command'[COMMAND]:command:' \
1833
"(--help --type)"--type'[TYPE]:type:' \
1834
"(--help --sequence)"--sequence'[NUM]:number:' \
1835
'*:IDs:'
1836
1837
;;
1838
(list|status)
1839
_arguments \
1840
${_common_options[@]} \
1841
1842
;;
1843
(test)
1844
_arguments \
1845
${_common_options[@]} \
1846
"(--help --dry-run)"--dry-run'[Print the script on stdout rather than run it]' \
1847
"(--help --base-rcvid)"--base-rcvid'[N Pretend that the hook-last-rcvid value is N]:number:' \
1848
"(--help --new-rcvid)"--new-rcvid'[M Pretend that the last rcvid valud is M]:number:' \
1849
"(--help --aux-file)"--aux-file'[NAME NAME is substituted for %A in the script]:name:' \
1850
'1:ID:'
1851
1852
;;
1853
*)
1854
_message 'no more arguments'
1855
1856
;;
1857
esac
1858
;;
1859
esac
1860
return 0
1861
}
1862
1863
########################################
1864
# fossil json #
1865
########################################
1866
function __fossil_json_subcommands() {
1867
_values 'subcommand' \
1868
anonymousPassword artifact branch cap config diff dir g login logout \
1869
query rebuild report resultCodes stat tag timeline user version \
1870
whoami wiki
1871
}
1872
1873
function __fossil_json() {
1874
local curcontext="$curcontext" state line
1875
typeset -A opt_args
1876
local -a _common_options
1877
1878
_common_options=(
1879
"(-)"--help'[Show help and exit]'
1880
"(--help -R --repository)"{-R,--repository}'[FILE Run commands on repository FILE]:fossils:($(__fossil_repos))'
1881
)
1882
1883
_arguments -C \
1884
${_common_options[@]} \
1885
'1:subcommand:->subcommand' \
1886
'*::options:->options'
1887
1888
case $state in
1889
(subcommand)
1890
_arguments \
1891
'(- *)'-json-input'[FILE Read JSON data from FILE]:file:_files' \
1892
'1:subcommand:__fossil_json_subcommands'
1893
1894
;;
1895
(options)
1896
case $line[1] in
1897
-json-input)
1898
_arguments \
1899
${_common_options[@]} \
1900
'1:file:_files'
1901
1902
;;
1903
*)
1904
_message 'no more arguments'
1905
1906
;;
1907
esac
1908
;;
1909
*)
1910
esac
1911
return 0
1912
}
1913
1914
########################################
1915
# fossil login-group #
1916
########################################
1917
function __fossil_login_group() {
1918
local curcontext="$curcontext" state line
1919
typeset -A opt_args
1920
local -a _common_options
1921
1922
_common_options=(
1923
"(-)"--help'[Show help and exit]'
1924
)
1925
1926
_arguments -C \
1927
${_common_options[@]} \
1928
'1:subcommand:->subcommand' \
1929
'*::options:->options'
1930
1931
case $state in
1932
(subcommand)
1933
_values 'subcommand' \
1934
join leave
1935
1936
;;
1937
(options)
1938
case $line[1] in
1939
(join)
1940
_arguments \
1941
"(-name)"-name'[Specified the name of the login group]:name:' \
1942
':fossils:($(__fossil_repos))'
1943
1944
;;
1945
*)
1946
_message 'no more arguments'
1947
1948
;;
1949
esac
1950
;;
1951
esac
1952
return 0
1953
}
1954
1955
########################################
1956
# fossil purge #
1957
########################################
1958
function __fossil_purge() {
1959
local curcontext="$curcontext" state line
1960
typeset -A opt_args
1961
local -a _common_options
1962
1963
_common_options=(
1964
"(--help --explain --dry-run)"--explain'[Make no changes, but show what would happen]'
1965
"(--help --dry-run --explain)"--dry-run'[An alias for --explain]'
1966
"(-)"--help'[Show help and exit]'
1967
)
1968
1969
_arguments -C \
1970
"(-)"--help'[Show help and exit]' \
1971
'1:subcommand:->subcommand' \
1972
'*::options:->options'
1973
1974
case $state in
1975
(subcommand)
1976
_values 'subcommand' \
1977
artifacts cat checkins files list ls obliterate tickets undo wiki
1978
1979
;;
1980
(options)
1981
case $line[1] in
1982
(artifacts|cat)
1983
_arguments \
1984
${_common_options[@]} \
1985
'*:hashes:'
1986
1987
;;
1988
(checkins)
1989
_arguments \
1990
${_common_options[@]} \
1991
'*:tags:($(__fossil_tags))'
1992
1993
;;
1994
(files)
1995
_arguments \
1996
${_common_options[@]} \
1997
'*:files:_files'
1998
1999
;;
2000
(list|ls)
2001
_arguments \
2002
${_common_options[@]} \
2003
"(--help -l)"-l'[Provide more details]'
2004
2005
;;
2006
(obliterate)
2007
_arguments \
2008
${_common_options[@]} \
2009
"(--help --force)"--force'[Suppress confirmation prompt]' \
2010
'*:IDs:'
2011
2012
;;
2013
(tickets)
2014
_arguments \
2015
${_common_options[@]} \
2016
'*:ticket names:'
2017
2018
;;
2019
(undo)
2020
_arguments \
2021
${_common_options[@]} \
2022
'1:ID:'
2023
2024
;;
2025
(wiki)
2026
_arguments \
2027
${_common_options[@]} \
2028
'*:wiki pages:($(__fossil_wiki_pages))'
2029
2030
;;
2031
*)
2032
_message 'no more arguments'
2033
2034
;;
2035
esac
2036
;;
2037
esac
2038
return 0
2039
}
2040
2041
########################################
2042
# fossil remote #
2043
########################################
2044
function __fossil_remote() {
2045
local curcontext="$curcontext" state line
2046
typeset -A opt_args
2047
local -a _common_options
2048
2049
_common_options=(
2050
"(-)"--help'[Show help and exit]'
2051
)
2052
2053
_arguments -C \
2054
${_common_options[@]} \
2055
'1:subcommand:->subcommand' \
2056
'*::options:->options'
2057
2058
case $state in
2059
(subcommand)
2060
_values 'subcommand' \
2061
add delete list off
2062
2063
;;
2064
(options)
2065
case $line[1] in
2066
(add)
2067
_arguments \
2068
'1:name:' \
2069
'2:url:__fossil_urls'
2070
2071
;;
2072
2073
(delete)
2074
_arguments \
2075
'1:name:($(__fossil_remotes))'
2076
2077
;;
2078
*)
2079
_message 'no more arguments'
2080
2081
;;
2082
esac
2083
;;
2084
esac
2085
return 0
2086
}
2087
2088
########################################
2089
# fossil stash #
2090
########################################
2091
function __fossil_stash_ids() {
2092
fossil stash ls | grep '^\s*\d\+:' | awk -F ':' '{print $1}' | sed 's/^ *//'
2093
}
2094
2095
function __fossil_stash() {
2096
local curcontext="$curcontext" state line
2097
typeset -A opt_args
2098
local -a _common_options
2099
2100
_common_options=(
2101
"(-)"--help'[Show help and exit]'
2102
)
2103
2104
_arguments -C \
2105
${_common_options[@]} \
2106
'1:subcommand:->subcommand' \
2107
'*::options:->options'
2108
2109
case $state in
2110
(subcommand)
2111
_values 'subcommand' \
2112
save snapshot list ls show gshow pop apply goto drop diff gdiff
2113
2114
;;
2115
(options)
2116
case $line[1] in
2117
(save|snapshot)
2118
_arguments \
2119
"(-m --comment)"{-m,--comment}'[MSG Add comment]:comment:' \
2120
'*:files:_files'
2121
2122
;;
2123
(list|ls)
2124
_arguments \
2125
"(-v --verbose)"{-v,--verbose}'[Show info about individual files]' \
2126
"(-W --width)"{-W,--width}'[N Set width]:number:'
2127
2128
;;
2129
(show|cat|diff|gdiff)
2130
_arguments \
2131
${_fossil_diff_options[@]} \
2132
'1::stash ID:($(__fossil_stash_ids))'
2133
2134
;;
2135
(apply|goto)
2136
_arguments \
2137
'1::stash ID:($(__fossil_stash_ids))'
2138
2139
;;
2140
(drop|rm)
2141
_arguments \
2142
"(-a --all)"{-a,--all}'[Forget the whole stash (CANNOT UNDO!)]' \
2143
'1::stash ID:($(__fossil_stash_ids))'
2144
2145
;;
2146
*)
2147
_message 'no more arguments'
2148
2149
;;
2150
esac
2151
;;
2152
esac
2153
return 0
2154
}
2155
2156
########################################
2157
# fossil tag #
2158
########################################
2159
function __fossil_tag() {
2160
local curcontext="$curcontext" state line
2161
typeset -A opt_args
2162
local -a _common_options
2163
2164
_common_options=(
2165
"(-)"--help'[Show help and exit]'
2166
)
2167
2168
_arguments -C \
2169
${_common_options[@]} \
2170
'1:subcommand:->subcommand' \
2171
'*::options:->options'
2172
2173
case $state in
2174
(subcommand)
2175
_values 'subcommand' \
2176
add cancel find list ls
2177
2178
;;
2179
(options)
2180
case $line[1] in
2181
(add)
2182
_arguments \
2183
${_common_options[@]} \
2184
"(--help --raw)"--raw'[Raw tag name]' \
2185
"(--help --propagate)"--propagate'[Propagating tag]' \
2186
"(--help --date-override)"--date-override'[DATETIME Set date and time added]:datetime:' \
2187
"(--help --user-override)"--user-override'[USER Name USER when adding the tag]:user:($(__fossil_users))' \
2188
"(--help --dryrun -n)"{--dryrun,-n}'[Display the tag text, but do not]' \
2189
'1:tag name:($(__fossil_tags))' \
2190
'2:check-in:' \
2191
'3::value:'
2192
2193
;;
2194
(cancel)
2195
_arguments \
2196
${_common_options[@]} \
2197
"(--help --raw)"--raw'[Raw tag name]' \
2198
"(--help --date-override)"--date-override'[DATETIME Set date and time deleted]:datetime:' \
2199
"(--help --user-override)"--user-override'[USER Name USER when deleting the tag]:user:($(__fossil_users))' \
2200
"(--help --dryrun -n)"{--dryrun,-n}'[Display the control artifact, but do]' \
2201
'1:tag name:($(__fossil_tags))' \
2202
'2:check-in:'
2203
2204
;;
2205
(find)
2206
_arguments \
2207
${_common_options[@]} \
2208
"(--help --raw)"--raw'[Raw tag name]' \
2209
"(--help -t --type)"{-t,--type}'[TYPE One of "ci", or "e"]:(ci e)' \
2210
"(--help -n --limit)"{-n,--limit}'[N Limit to N results]:number:' \
2211
'1:tag name:($(__fossil_tags))'
2212
2213
;;
2214
(list|ls)
2215
_arguments \
2216
${_common_options[@]} \
2217
"(--help --raw)"--raw'[List tags raw names of tags]' \
2218
"(--help --tagtype)"--tagtype'[TYPE List only tags of type TYPE]:tag type:(ci e)' \
2219
"(--help -v --inverse)"{-v,--inverse}'[Inverse the meaning of --tagtype TYPE]' \
2220
'1::check-in:'
2221
2222
;;
2223
*)
2224
_message 'no more arguments'
2225
2226
;;
2227
esac
2228
;;
2229
esac
2230
return 0
2231
}
2232
2233
########################################
2234
# fossil ticket #
2235
########################################
2236
function __fossil_ticket() {
2237
local curcontext="$curcontext" state line
2238
typeset -A opt_args
2239
local -a _common_options
2240
2241
_common_options=(
2242
"(-)"--help'[Show help and exit]'
2243
)
2244
2245
_arguments -C \
2246
${_common_options[@]} \
2247
'1:subcommand:->subcommand' \
2248
'*::options:->options'
2249
2250
case $state in
2251
(subcommand)
2252
_values 'subcommand' \
2253
show list ls set change add history
2254
2255
;;
2256
(options)
2257
case $line[1] in
2258
(show)
2259
_arguments \
2260
${_common_options[@]} \
2261
"(--help -l --limit)"{-l,--limit}'[LIMITCHAR]:limit:' \
2262
"(--help -q --quote)"{-q,--quote}'[]' \
2263
"(--help -R --repository)"{-R,--repository}'[FILE]:fossils:($(__fossil_repos))' \
2264
'1:report title/nr:' \
2265
'2::ticket filter:'
2266
2267
;;
2268
(list|ls)
2269
_arguments \
2270
':what:(fields reports)'
2271
2272
;;
2273
(set|change)
2274
_arguments \
2275
${_common_options[@]} \
2276
"(--help -q --quote)"{-q,--quote}'[]' \
2277
'1:ticket UUID:' \
2278
'*:field/value:'
2279
2280
;;
2281
(add)
2282
_arguments \
2283
${_common_options[@]} \
2284
"(--help -q --quote)"{-q,--quote}'[]' \
2285
'*:field/value:'
2286
2287
;;
2288
(history)
2289
_arguments \
2290
':ticket UUID:'
2291
2292
;;
2293
*)
2294
_message 'no more arguments'
2295
2296
;;
2297
esac
2298
;;
2299
esac
2300
return 0
2301
}
2302
2303
########################################
2304
# fossil tls-config #
2305
########################################
2306
function __fossil_tls_config() {
2307
local curcontext="$curcontext" state line
2308
typeset -A opt_args
2309
local -a _common_options
2310
2311
_common_options=(
2312
"(-)"--help'[Show help and exit]'
2313
)
2314
2315
_arguments -C \
2316
${_common_options[@]} \
2317
'1:subcommand:->subcommand' \
2318
'*::options:->options'
2319
2320
case $state in
2321
(subcommand)
2322
_values 'subcommand' \
2323
show remove-exception
2324
2325
;;
2326
(options)
2327
case $line[1] in
2328
(remove-exception)
2329
_arguments \
2330
'*:domains:'
2331
2332
;;
2333
*)
2334
_message 'no more arguments'
2335
2336
;;
2337
esac
2338
;;
2339
esac
2340
return 0
2341
}
2342
2343
########################################
2344
# fossil unversioned/uv #
2345
########################################
2346
function __fossil_unversioned() {
2347
local curcontext="$curcontext" state line
2348
typeset -A opt_args
2349
local -a _common_options
2350
2351
_common_options=(
2352
"(--help -R --repository)"{-R,--repository}'[FILE Use FILE as the repository]:fossils:($(__fossil_repos))'
2353
"(--help --mtime)"--mtime'[TIMESTAMP Use TIMESTAMP instead of "now"]:timestamp:'
2354
"(-)"--help'[Show help and exit]'
2355
)
2356
2357
_arguments -C \
2358
${_common_options[@]} \
2359
'1:subcommand:->subcommand' \
2360
'*::options:->options'
2361
2362
case $state in
2363
(subcommand)
2364
_values 'subcommand' \
2365
add cat edit export list ls revert remove rm delete sync touch
2366
2367
;;
2368
(options)
2369
case $line[1] in
2370
(add)
2371
_arguments \
2372
${_common_options[@]} \
2373
"(--help --as)"--as'[UVFILE]:file:_files' \
2374
'*:files:_files'
2375
2376
;;
2377
(cat)
2378
_arguments \
2379
${_common_options[@]} \
2380
'*:files:_files'
2381
2382
;;
2383
(edit)
2384
_arguments \
2385
${_common_options[@]} \
2386
'1:file:_files'
2387
2388
;;
2389
(export)
2390
_arguments \
2391
${_common_options[@]} \
2392
'1:file:_files' \
2393
'2:output file:_files'
2394
2395
;;
2396
(list|ls)
2397
_arguments \
2398
${_common_options[@]} \
2399
"(--help --glob)"--glob'[PATTERN Show only files that match]:pattern:' \
2400
"(--help --like)"--like'[PATTERN Show only files that match]:pattern:'
2401
2402
;;
2403
(revert)
2404
_arguments \
2405
${_common_options[@]} \
2406
"(--help -v --verbose)"{-v,--verbose}'[Extra diagnostic output]' \
2407
"(--help -n --dryrun)"{-n,--dryrun}'[Show what would have happened]' \
2408
'1::url:__fossil_urls'
2409
2410
;;
2411
(remove|rm|delete)
2412
_arguments \
2413
${_common_options[@]} \
2414
"(--help --glob)"--glob'[PATTERN Remove files that match]:pattern:' \
2415
"(--help --like)"--like'[PATTERN Remove files that match]:pattern:' \
2416
'*:files:_files'
2417
2418
;;
2419
(sync)
2420
_arguments \
2421
${_common_options[@]} \
2422
"(--help -v --verbose)"{-v,--verbose}'[Extra diagnostic output]' \
2423
"(--help -n --dryrun)"{-n,--dryrun}'[Show what would have happened]' \
2424
'1::url:__fossil_urls'
2425
2426
;;
2427
(touch)
2428
_arguments \
2429
${_common_options[@]} \
2430
'*:files:_files'
2431
2432
;;
2433
*)
2434
_message 'no more arguments'
2435
2436
;;
2437
esac
2438
;;
2439
esac
2440
return 0
2441
}
2442
2443
########################################
2444
# fossil user #
2445
########################################
2446
function __fossil_user() {
2447
local curcontext="$curcontext" state line
2448
typeset -a opt_args
2449
local -a _common_options
2450
2451
_common_options=(
2452
"(--help -R --repository)"{-R,--repository}'[FILE Apply command to repository FILE]:fossils:($(__fossil_repos))'
2453
"(-)"--help'[show help and exit]'
2454
)
2455
2456
_arguments -c \
2457
${_common_options[@]} \
2458
'1:subcommand:->subcommand' \
2459
'*::options:->options'
2460
2461
case $state in
2462
(subcommand)
2463
_values 'subcommand' \
2464
capabilities default list ls new password
2465
2466
;;
2467
(options)
2468
case $line[1] in
2469
(capabilities)
2470
_arguments \
2471
${_common_options[@]} \
2472
'1:user:($(__fossil_users))' \
2473
'2::string:'
2474
2475
;;
2476
(default)
2477
_arguments \
2478
${_common_options[@]} \
2479
'1::user:($(__fossil_users))'
2480
2481
;;
2482
(list|ls)
2483
_arguments \
2484
${_common_options[@]}
2485
2486
;;
2487
(new)
2488
_arguments \
2489
${_common_options[@]} \
2490
'1::username:' \
2491
'2::contact info:' \
2492
'3::password:'
2493
2494
;;
2495
(password)
2496
_arguments \
2497
${_common_options[@]} \
2498
'1:user:($(__fossil_users))' \
2499
'2::password:'
2500
2501
;;
2502
*)
2503
_message 'no more arguments'
2504
2505
;;
2506
esac
2507
;;
2508
esac
2509
return 0
2510
}
2511
2512
########################################
2513
# fossil wiki #
2514
########################################
2515
function __fossil_wiki() {
2516
local curcontext="$curcontext" state line
2517
typeset -a opt_args
2518
local -a _common_options
2519
2520
_common_options=(
2521
"(-)"--help'[show help and exit]'
2522
)
2523
2524
_arguments -c \
2525
${_common_options[@]} \
2526
'1:subcommand:->subcommand' \
2527
'*::options:->options'
2528
2529
case $state in
2530
(subcommand)
2531
_values 'subcommand' \
2532
export create commit list
2533
2534
;;
2535
(options)
2536
case $line[1] in
2537
(export)
2538
_arguments \
2539
${_common_options[@]} \
2540
"(--help --technote -t)"{--technote,-t}'[DATETIME|TECHNOTE-ID Export a technote]:datetime/technote-id:(now)' \
2541
"(--help -h --html -H --HTML)"--html'[Render only HTML body]' \
2542
"(--help -H --HTML -h --html)"--HTML'[Like -h|-html but wraps the output in <html>/</html>]' \
2543
"(--help -p --pre)"{-p,--pre}'[Wrap into <pre>...</pre>]' \
2544
'::pagename:($(__fossil_wiki_pages))' \
2545
'::file:_files'
2546
2547
;;
2548
(create|commit)
2549
_arguments \
2550
${_common_options[@]} \
2551
"(--help -M --mimetype)"{-M,--mimetype}'[TEXT-FORMAT The mime type of the update]:mimetype:' \
2552
"(--help --technote -t)"{--technote,-t}'[DATETIME|TECHNOTE-ID]:datetime/technote-id:(now)' \
2553
"(--help --technote-tags)"--technote-tags'[TAGS The set of tags for a technote]:tags:' \
2554
"(--help --technote-bgcolor)"--technote-bgcolor'[COLOR The color used for the technote]:color:' \
2555
'1:pagename:($(__fossil_wiki_pages))' \
2556
'2::file:_files'
2557
2558
;;
2559
(list|ls)
2560
_arguments \
2561
${_common_options[@]} \
2562
"(--help -t --technote)"{-t,--technote}'[List technotes]' \
2563
"(--help -s --show-technote-ids)"{-s,--show-technote-ids}'[The id of the tech note will be listed]'
2564
2565
;;
2566
*)
2567
_message 'no more arguments'
2568
2569
;;
2570
esac
2571
;;
2572
esac
2573
return 0
2574
}
2575
2576
2577
########################################
2578
# fossil test commands #
2579
########################################
2580
2581
function __fossil_complete_test_commands() {
2582
case $line[1] in
2583
(test-add-alerts)
2584
_arguments \
2585
"(--help --backoffice)"--backoffice'[Run alert_backoffice() after all alerts have been added]' \
2586
"(--help --debug)"--debug'[Like --backoffice, but print to stdout]' \
2587
"(--help --digest)"--digest'[Process emails using SENDALERT_DIGEST]' \
2588
'(- *)'--help'[Show help and exit]' \
2589
'*:event IDs:'
2590
2591
;;
2592
(test-agg-cksum)
2593
_arguments \
2594
'(- *)'--help'[Show help and exit]'
2595
2596
;;
2597
(test-alert)
2598
_arguments \
2599
"(--help --digest)"--digest'[Generate digest alert text]' \
2600
"(--help --needmod)"--needmod'[Assume all events are pending moderator approval]' \
2601
'(- *)'--help'[Show help and exit]' \
2602
'*:event IDs:'
2603
2604
;;
2605
(test-all-help)
2606
_arguments \
2607
"(--help -e --everything)"{-e,--everything}'[Show all commands and pages]' \
2608
"(--help -t --test)"{-t,--test}'[Include test- commands]' \
2609
"(--help -w --www)"{-w,--www}'[Show WWW pages]' \
2610
"(--help -s --settings)"{-s,--settings}'[Show settings]' \
2611
"(--help -h --html)"{-h,--html}'[Transform output to HTML]' \
2612
"(--help -r --raw)"{-r,--raw}'[No output formatting]' \
2613
'(- *)'--help'[Show help and exit]'
2614
2615
;;
2616
(test-ambiguous)
2617
_arguments \
2618
"(--help --minsize)"--minsize'[N Show hases with N characters or more]:number:' \
2619
'(- *)'--help'[Show help and exit]'
2620
2621
;;
2622
(test-ancestor-path)
2623
_arguments \
2624
'(- *)'--help'[Show help and exit]' \
2625
'1:version 1:' \
2626
'2:version 2:'
2627
2628
;;
2629
(test-approx-match)
2630
_arguments \
2631
'(- *)'--help'[Show help and exit]'
2632
2633
;;
2634
(test-backlinks)
2635
_arguments \
2636
"(--help --mtime)"--mtime'[DATETIME Use an alternative date/time]:datetime:' \
2637
"(--help --mimetype)"--mimetype'[TYPE Use an alternative mimetype]:mimetype:' \
2638
'(- *)'--help'[Show help and exit]' \
2639
'1:srctype:' \
2640
'2:srcid:' \
2641
'3:input file:_files'
2642
2643
;;
2644
(test-backoffice-lease)
2645
_arguments \
2646
'(- *)'--help'[Show help and exit]'
2647
2648
;;
2649
(test-builtin-get)
2650
_arguments \
2651
'(- *)'--help'[Show help and exit]' \
2652
'1:name:' \
2653
'2::output file:_files'
2654
2655
;;
2656
(test-builtin-list)
2657
_arguments \
2658
"(--help --verbose)"--verbose'[Output total item count and size]' \
2659
'(- *)'--help'[Show help and exit]'
2660
2661
;;
2662
(test-canonical-name)
2663
_arguments \
2664
'(- *)'--help'[Show help and exit]' \
2665
'*:files:_files'
2666
2667
;;
2668
(test-captcha)
2669
_arguments \
2670
'(- *)'--help'[Show help and exit]' \
2671
'*:numbers:'
2672
2673
;;
2674
(test-ci-mini)
2675
_arguments \
2676
"(--help --repository -R)"{--repository,-R}'[REPO The repository file to commit to]:fossils:($(__fossil_repos))' \
2677
"(--help --as)"--as'[FILENAME The repository-side name of the input file]:file:_files' \
2678
"(--help --comment -m)"{--comment,-m}'[COMMENT Required checkin comment]:comment:' \
2679
"(--help --comment-file -M)"{--comment-file,-M}'[FILE Reads checkin comment from the given file]:file:_files' \
2680
"(--help --revision -r)"{--revision,-r}'[VERSION Commit from this version]:version:' \
2681
"(--help --allow-fork)"--allow-fork'[Allow commit against a non-leaf parent]' \
2682
"(--help --allow-merge-conflict)"--allow-merge-conflict'[Allow checkin of a file with conflict markers]' \
2683
"(--help --user-override)"--user-override'[USER User to use instead of the default]:user:($(__fossil_users))' \
2684
"(--help --date-override)"--date-override'[DATETIME Date to use instead of '"'"'now'"'"']:datetime:(now)' \
2685
"(--help --allow-older)"--allow-older'[Allow a commit to be older than its ancestor]' \
2686
"(--help --convert-eol-inherit)"--convert-eol-inherit'[Inherit EOL style from previous content]' \
2687
"(--help --convert-eol-unix)"--convert-eol-unix'[Convert the EOL style to Unix]' \
2688
"(--help --convert-eol-windows)"--convert-eol-windows'[Convert the EOL style to Windows]' \
2689
"(--help --delta)"--delta'[Prefer to generate a delta manifest]' \
2690
"(--help --allow-new-file)"--allow-new-file'[Allow addition of a new file this way]' \
2691
"(--help --dump-manifest -d)"{--dump-manifest,-d}'[Dumps the generated manifest to stdout]' \
2692
"(--help --save-manifest)"--save-manifest'[FILE Saves the generated manifest to a file]:file:_files' \
2693
"(--help --wet-run)"--wet-run'[Disables the default dry-run mode]' \
2694
'(- *)'--help'[Show help and exit]' \
2695
'1:file:_files'
2696
2697
;;
2698
(test-clusters)
2699
_arguments \
2700
'(- *)'--help'[Show help and exit]'
2701
2702
;;
2703
(test-command-stats)
2704
_arguments \
2705
'(- *)'--help'[Show help and exit]'
2706
2707
;;
2708
(test-comment-format)
2709
_arguments \
2710
"(--help --file)"--file'[The comment text is really just a file name to read it from]' \
2711
"(--help --decode)"--decode'[Decode the text using the same method used for a C-card from a manifest]' \
2712
"(--help --legacy)"--legacy'[Use the legacy comment printing algorithm]' \
2713
"(--help --trimcrlf)"--trimcrlf'[Enable trimming of leading/trailing CR/LF]' \
2714
"(--help --trimspace)"--trimspace'[Enable trimming of leading/trailing spaces]' \
2715
"(--help --wordbreak)"--wordbreak'[Attempt to break lines on word boundaries]' \
2716
"(--help --origbreak)"--origbreak'[Attempt to break when the original comment text is detected]' \
2717
"(--help --indent)"--indent'[NUM Number of spaces to indent]:number:' \
2718
"(--help -W --width)"{-W,--width}'[NUM Width of lines]:number:' \
2719
'(- *)'--help'[Show help and exit]' \
2720
'1:prefix:' \
2721
'2:text:' \
2722
'3::origtext:'
2723
2724
;;
2725
(test-commit-warning)
2726
_arguments \
2727
"(--help --no-settings)"--no-settings'[Do not consider any glob settings]' \
2728
"(--help -v --verbose)"{-v,--verbose}'[Show per-file results for all pre-commit checks]' \
2729
'(- *)'--help'[Show help and exit]'
2730
2731
;;
2732
(test-compress)
2733
_arguments \
2734
'(- *)'--help'[Show help and exit]' \
2735
'1:input file:_files' \
2736
'2:output file:_files'
2737
2738
;;
2739
(test-compress-2)
2740
_arguments \
2741
'(- *)'--help'[Show help and exit]' \
2742
'1:input file 1:_files' \
2743
'2:input file 2:_files' \
2744
'3:output file:_files'
2745
2746
;;
2747
(test-contains-selector)
2748
_arguments \
2749
'(- *)'--help'[Show help and exit]' \
2750
'1:file:_files' \
2751
'2:css selector:'
2752
2753
;;
2754
(test-content-deltify)
2755
_arguments \
2756
"(--help --force)"--force'[]' \
2757
'(- *)'--help'[Show help and exit]' \
2758
'1:rid:' \
2759
'*:src id:'
2760
2761
;;
2762
(test-content-erase)
2763
_arguments \
2764
'(- *)'--help'[Show help and exit]' \
2765
'*:rid:'
2766
2767
;;
2768
(test-content-put)
2769
_arguments \
2770
'(- *)'--help'[Show help and exit]' \
2771
'1:file:_files'
2772
2773
;;
2774
(test-content-rawget)
2775
_arguments \
2776
'(- *)'--help'[Show help and exit]'
2777
2778
;;
2779
(test-content-undelta)
2780
_arguments \
2781
'(- *)'--help'[Show help and exit]' \
2782
'1:record id:'
2783
2784
;;
2785
(test-convert-stext)
2786
_arguments \
2787
'(- *)'--help'[Show help and exit]' \
2788
'1:file:_files' \
2789
'2:mimetype:'
2790
2791
;;
2792
(test-create-clusters)
2793
_arguments \
2794
'(- *)'--help'[Show help and exit]'
2795
2796
;;
2797
(test-crosslink)
2798
_arguments \
2799
'(- *)'--help'[Show help and exit]' \
2800
'1:record id:'
2801
2802
;;
2803
(test-cycle-compress)
2804
_arguments \
2805
'(- *)'--help'[Show help and exit]'
2806
2807
;;
2808
(test-database-names)
2809
_arguments \
2810
'(- *)'--help'[Show help and exit]'
2811
2812
;;
2813
(test-date-format)
2814
_arguments \
2815
'(- *)'--help'[Show help and exit]' \
2816
'*:date string:'
2817
2818
;;
2819
(test-db-exec-error)
2820
_arguments \
2821
'(- *)'--help'[Show help and exit]'
2822
2823
;;
2824
(test-decode-email)
2825
_arguments \
2826
'(- *)'--help'[Show help and exit]' \
2827
'1:file:_files'
2828
2829
;;
2830
(test-decode64)
2831
_arguments \
2832
'(- *)'--help'[Show help and exit]' \
2833
'1:string:'
2834
2835
;;
2836
(test-delta)
2837
_arguments \
2838
'(- *)'--help'[Show help and exit]' \
2839
'1:file:_files' \
2840
'2:file:_files'
2841
2842
;;
2843
(test-delta-analyze)
2844
_arguments \
2845
'(- *)'--help'[Show help and exit]' \
2846
'1:file:_files' \
2847
'2:file:_files'
2848
2849
;;
2850
(test-delta-apply)
2851
_arguments \
2852
'(- *)'--help'[Show help and exit]' \
2853
'1:file:_files' \
2854
'2:delta:_files'
2855
2856
;;
2857
(test-delta-create)
2858
_arguments \
2859
'(- *)'--help'[Show help and exit]' \
2860
'1:file:_files' \
2861
'2:file:_files' \
2862
'3:delta:_files'
2863
2864
;;
2865
(test-describe-artifacts)
2866
_arguments \
2867
"(--help --from)"--from'[S An artifact]:artifact:' \
2868
"(--help --count)"--count'[N Number of artifacts]:number:' \
2869
'(- *)'--help'[Show help and exit]'
2870
2871
;;
2872
(test-detach)
2873
_arguments \
2874
'(- *)'--help'[Show help and exit]' \
2875
'1::fossils:($(__fossil_repos))'
2876
2877
;;
2878
(test-diff)
2879
_arguments \
2880
${_fossil_diff_options[@]} \
2881
'1:file 1:_files' \
2882
'2:file 2:_files'
2883
2884
;;
2885
(test-dir-size)
2886
_arguments \
2887
"(--help --nodots)"--nodots'[Omit files that begin with '"'"'.'"'"']' \
2888
'(- *)'--help'[Show help and exit]' \
2889
'1:directory:_files -/' \
2890
'2::glob pattern:'
2891
2892
;;
2893
(test-echo)
2894
_arguments \
2895
"(--help --hex)"--hex'[Show the output as hexadecimal]' \
2896
'(- *)'--help'[Show help and exit]' \
2897
'*:args:'
2898
2899
;;
2900
(test-emailblob-refcheck)
2901
_arguments \
2902
"(--help --repair)"--repair'[Fix up the enref field]' \
2903
"(--help --full)"--full'[Give a full report]' \
2904
"(--help --clean)"--clean'[Used with --repair, removes entries with enref==0]' \
2905
'(- *)'--help'[Show help and exit]'
2906
2907
;;
2908
(test-encode64)
2909
_arguments \
2910
'(- *)'--help'[Show help and exit]' \
2911
'1:string:'
2912
2913
;;
2914
(test-escaped-arg)
2915
_arguments \
2916
'(- *)'--help'[Show help and exit]' \
2917
'*:args:'
2918
2919
;;
2920
(test-etag)
2921
_arguments \
2922
"(--help --key)"--key'[KEYNUM]:key number:' \
2923
"(--help --hash)"--hash'[HASH]:hash:' \
2924
'(- *)'--help'[Show help and exit]'
2925
2926
;;
2927
(test-file-copy)
2928
_arguments \
2929
'(- *)'--help'[Show help and exit]' \
2930
'1:source:_files' \
2931
'2:destination:_files'
2932
2933
;;
2934
(test-file-environment)
2935
_arguments \
2936
"(--help --allow-symlinks)"--allow-symlinks'[BOOL Temporarily turn allow-symlinks on/off]:bool:(yes no)' \
2937
"(--help --open-config)"--open-config'[Open the configuration database first]' \
2938
"(--help --slash)"--slash'[Trailing slashes, if any, are retaine]' \
2939
"(--help --reset)"--reset'[Reset cached stat() info for each file]' \
2940
'(- *)'--help'[Show help and exit]' \
2941
'*:files:_files'
2942
2943
;;
2944
(test-fileage)
2945
_arguments \
2946
'(- *)'--help'[Show help and exit]' \
2947
'1:checkin:'
2948
2949
;;
2950
(test-filezip)
2951
_arguments \
2952
'(- *)'--help'[Show help and exit]'
2953
2954
;;
2955
(test-find-mx)
2956
_arguments \
2957
'(- *)'--help'[Show help and exit]' \
2958
'*:domain:'
2959
2960
;;
2961
(test-find-pivot)
2962
_arguments \
2963
"(--help --ignore-merges)"--ignore-merges'[Ignore merges for discovering name pivots]' \
2964
'(- *)'--help'[Show help and exit]' \
2965
'*:args:'
2966
2967
;;
2968
(test-fingerprint)
2969
_arguments \
2970
'(- *)'--help'[Show help and exit]' \
2971
'1::rcvid:'
2972
2973
;;
2974
(test-forumthread)
2975
_arguments \
2976
'(- *)'--help'[Show help and exit]' \
2977
'1:thread id:'
2978
2979
;;
2980
(test-fossil-system)
2981
_arguments \
2982
'(- *)'--help'[Show help and exit]'
2983
2984
;;
2985
(test-fuzz)
2986
_arguments \
2987
"(--help --type)"--type'[TYPE]:type:(wiki markdown artifact)' \
2988
'(- *)'--help'[Show help and exit]' \
2989
'*:files:_files'
2990
2991
;;
2992
(test-glob)
2993
_arguments \
2994
'(- *)'--help'[Show help and exit]' \
2995
'1:pattern:' \
2996
'2:string:'
2997
2998
;;
2999
(test-grep)
3000
_arguments \
3001
"(--help -i --ignore-case)"{-i,--ignore-case}'[Ignore case]' \
3002
'(- *)'--help'[Show help and exit]' \
3003
'1:regexp:' \
3004
'*:files:_files'
3005
3006
;;
3007
(test-gzip)
3008
_arguments \
3009
'(- *)'--help'[Show help and exit]' \
3010
'1:file:_files'
3011
3012
;;
3013
(test-hash-color)
3014
_arguments \
3015
'(- *)'--help'[Show help and exit]' \
3016
'*:tags:($(__fossil_tags))'
3017
3018
;;
3019
(test-hash-passwords)
3020
_arguments \
3021
'(- *)'--help'[Show help and exit]' \
3022
'1:fossils:($(__fossil_repos))'
3023
3024
;;
3025
(test-html-tidy)
3026
_arguments \
3027
'(- *)'--help'[Show help and exit]'
3028
3029
;;
3030
(test-html-to-text)
3031
_arguments \
3032
'(- *)'--help'[Show help and exit]' \
3033
'*:files:_files'
3034
3035
;;
3036
(test-html-tokenize)
3037
_arguments \
3038
'(- *)'--help'[Show help and exit]'
3039
3040
;;
3041
(test-http)
3042
_arguments \
3043
"(--help --th-trace)"--th-trace'[Trace TH1 execution (for debugging purposes)]' \
3044
"(--help --usercap)"--usercap'[CAP user capability string]:capability string:' \
3045
'(- *)'--help'[Show help and exit]'
3046
3047
;;
3048
(test-httpmsg)
3049
_arguments \
3050
"(--help --compress)"--compress'[Use ZLIB compression on the payload]' \
3051
"(--help --mimetype)"--mimetype'[TYPE Mimetype of the payload]:mimetype:' \
3052
"(--help --out)"--out'[FILE Store the reply in FILE]:file:_files' \
3053
"(--help -v)"-v'[Verbose output]' \
3054
'(- *)'--help'[Show help and exit]' \
3055
'1:url:__fossil_urls' \
3056
'2::payload:'
3057
3058
;;
3059
(test-integrity)
3060
_arguments \
3061
"(--help -d --db-only)"{-d,--db-only}'[Run "PRAGMA integrity_check" on the database only]' \
3062
"(--help --parse)"--parse'[Parse all manifests, wikis, tickets, events, etc]' \
3063
"(--help -q --quick)"{-q,--quick}'[Run "PRAGMA quick_check" on the database only]' \
3064
'(- *)'--help'[Show help and exit]'
3065
3066
;;
3067
(test-is-reserved-name|test-is-ckout-db)
3068
_arguments \
3069
'(- *)'--help'[Show help and exit]' \
3070
'*:files:_files'
3071
3072
;;
3073
(test-ishuman)
3074
_arguments \
3075
'(- *)'--help'[Show help and exit]'
3076
3077
;;
3078
(test-isspace)
3079
_arguments \
3080
'(- *)'--help'[Show help and exit]'
3081
3082
;;
3083
(test-leaf-ambiguity)
3084
_arguments \
3085
'(- *)'--help'[Show help and exit]' \
3086
'*:names:'
3087
3088
;;
3089
(test-list-page)
3090
_arguments \
3091
'(- *)'--help'[Show help and exit]' \
3092
'1:directory:_files -/'
3093
3094
;;
3095
(test-list-webpage)
3096
_arguments \
3097
'(- *)'--help'[Show help and exit]'
3098
3099
;;
3100
(test-loadavg)
3101
_arguments \
3102
'(- *)'--help'[Show help and exit]'
3103
3104
;;
3105
(test-looks-like-utf)
3106
_arguments \
3107
"(--help -n --limit)"{-n,--limit}'[NUM Repeat looks-like function NUM times]:number:' \
3108
"(--help --utf8)"--utf8'[Ignoring BOM and file size, force UTF-8 checking]' \
3109
"(--help --utf16)"--utf16'[Ignoring BOM and file size, force UTF-16 checking]' \
3110
'(- *)'--help'[Show help and exit]' \
3111
'1:file:_files'
3112
3113
;;
3114
(test-mailbox-hashname)
3115
_arguments \
3116
'(- *)'--help'[Show help and exit]' \
3117
'*:human name:'
3118
3119
;;
3120
(test-markdown-render)
3121
_arguments \
3122
"(--help --safe)"--safe'[Restrict the output to use only "safe" HTML]' \
3123
'(- *)'--help'[Show help and exit]' \
3124
'*:files:_files'
3125
3126
;;
3127
(test-match)
3128
_arguments \
3129
"(--help --begin)"--begin'[TEXT Text to insert before each match]:text:' \
3130
"(--help --end)"--end'[TEXT Text to insert after each match]:text:' \
3131
"(--help --gap)"--gap'[TEXT Text to indicate elided content]:text:' \
3132
"(--help --html)"--html'[Input is HTML]' \
3133
"(--help --static)"--static'[Use the static Search object]' \
3134
'(- *)'--help'[Show help and exit]' \
3135
'1:search string:' \
3136
'*:files:_files'
3137
3138
;;
3139
(test-mimetype)
3140
_arguments \
3141
'(- *)'--help'[Show help and exit]' \
3142
'*:files:_files'
3143
3144
;;
3145
(test-missing)
3146
_arguments \
3147
"(--help --notshunned)"--notshunned'[Do not report shunned artifacts]' \
3148
"(--help --quiet)"--quiet'[Only show output if there are errors]' \
3149
'(- *)'--help'[Show help and exit]'
3150
3151
;;
3152
(test-move-repository)
3153
_arguments \
3154
'(- *)'--help'[Show help and exit]' \
3155
'1:pathname:_files'
3156
3157
;;
3158
(test-name-changes)
3159
_arguments \
3160
"(--help --debug)"--debug'[Enable debugging]' \
3161
'(- *)'--help'[Show help and exit]' \
3162
'1:version 1:' \
3163
'2:version 2:'
3164
3165
;;
3166
(test-name-to-id)
3167
_arguments \
3168
"(--help --count)"--count'[N Repeat the conversion N times]:number:' \
3169
'(- *)'--help'[Show help and exit]' \
3170
'*:name:'
3171
3172
;;
3173
(test-obscure)
3174
_arguments \
3175
'(- *)'--help'[Show help and exit]' \
3176
'*:args:'
3177
3178
;;
3179
(test-orphans)
3180
_arguments \
3181
'(- *)'--help'[Show help and exit]'
3182
3183
;;
3184
(test-parse-all-blobs)
3185
_arguments \
3186
"(--help --limit)"--limit'[N Parse no more than N blobs]:number:' \
3187
'(- *)'--help'[Show help and exit]'
3188
3189
;;
3190
(test-parse-manifest)
3191
_arguments \
3192
'(- *)'--help'[Show help and exit]' \
3193
'1:file:_files' \
3194
'2::n:'
3195
3196
;;
3197
(test-phantoms)
3198
_arguments \
3199
'(- *)'--help'[Show help and exit]'
3200
3201
;;
3202
(test-process-id)
3203
_arguments \
3204
"(--help --sleep)"--sleep'[N Sleep for N seconds before exiting]:number:' \
3205
'(- *)'--help'[Show help and exit]' \
3206
'*:process id:'
3207
3208
;;
3209
(test-prompt-password)
3210
_arguments \
3211
'(- *)'--help'[Show help and exit]' \
3212
'1:prompt:' \
3213
'2:verify:(0 1 2)'
3214
3215
;;
3216
(test-prompt-user)
3217
_arguments \
3218
'(- *)'--help'[Show help and exit]' \
3219
'1:prompt:'
3220
3221
;;
3222
(test-random-password)
3223
_arguments \
3224
'(- *)'--help'[Show help and exit]' \
3225
'1::length:'
3226
3227
;;
3228
(test-rawdiff)
3229
_arguments \
3230
'(- *)'--help'[Show help and exit]' \
3231
'1:file 1:_files' \
3232
'2:file 2:_files'
3233
3234
;;
3235
(test-relative-name)
3236
_arguments \
3237
'(- *)'--help'[Show help and exit]'
3238
3239
;;
3240
(test-reserved-names)
3241
_arguments \
3242
"(--help -omitrepo)"-omitrepo'[]' \
3243
'(- *)'--help'[Show help and exit]'
3244
3245
;;
3246
(test-safe-html)
3247
_arguments \
3248
'(- *)'--help'[Show help and exit]' \
3249
'*:files:_files'
3250
3251
;;
3252
(test-sanitize-name)
3253
_arguments \
3254
'(- *)'--help'[Show help and exit]' \
3255
'*:args:'
3256
3257
;;
3258
(test-search-stext)
3259
_arguments \
3260
'(- *)'--help'[Show help and exit]' \
3261
'1:type:(c d e t w)' \
3262
'2:rid:' \
3263
'3:name:'
3264
3265
;;
3266
(test-set-mtime)
3267
_arguments \
3268
'(- *)'--help'[Show help and exit]' \
3269
'1:file:_files' \
3270
'2:date/time:'
3271
3272
;;
3273
(test-shortest-path)
3274
_arguments \
3275
"(--help --no-merge)"--no-merge'[Follow only direct parent-child paths]' \
3276
'(- *)'--help'[Show help and exit]' \
3277
'1:version 1:' \
3278
'2:version 2:'
3279
3280
;;
3281
(test-simplify-name)
3282
_arguments \
3283
'(- *)'--help'[Show help and exit]' \
3284
'*:files:_files'
3285
3286
;;
3287
(test-smtp-probe)
3288
_arguments \
3289
"(--help --direct)"--direct'[Use DOMAIN directly without going through MX]' \
3290
"(--help --port)"--port'[N Talk on TCP port N]:number:' \
3291
'(- *)'--help'[Show help and exit]' \
3292
'1:domain:' \
3293
'2::me:'
3294
3295
;;
3296
(test-smtp-send)
3297
_arguments \
3298
"(--help --direct)"--direct'[Bypass MX lookup]' \
3299
"(--help --relayhost)"--relayhost'[HOST Use HOST as relay for delivery]:host:' \
3300
"(--help --port)"--port'[Use TCP port N instead of 25]:number:' \
3301
"(--help --trace)"--trace'[Show the SMTP conversation on the console]' \
3302
'(- *)'--help'[Show help and exit]' \
3303
'1:email:_files' \
3304
'2:from:' \
3305
'*:to:'
3306
3307
;;
3308
(test-smtp-senddata)
3309
_arguments \
3310
'(- *)'--help'[Show help and exit]' \
3311
'1:file:_files'
3312
3313
;;
3314
(test-subtree)
3315
_arguments \
3316
"(--help --branch)"--branch'[BRANCH Include only check-ins on BRANCH]:branch:($(__fossil_branches))' \
3317
"(--help --from)"--from'[TAG Start the subtree at TAG]:tag:($(__fossil_tags))' \
3318
"(--help --to)"--to'[TAG End the subtree at TAG]:tag:($(__fossil_tags))' \
3319
"(--help --checkin)"--checkin'[TAG The subtree is the single check-in TAG]:tag:($(__fossil_tags))' \
3320
"(--help --all)"--all'[Include FILE and TAG artifacts]' \
3321
"(--help --exclusive)"--exclusive'[Include FILES exclusively on check-ins]' \
3322
'(- *)'--help'[Show help and exit]'
3323
3324
;;
3325
(test-tag)
3326
_arguments \
3327
'(- *)'--help'[Show help and exit]' \
3328
'1:tag:($(__fossil_tags))' \
3329
'2:artifact id:' \
3330
'3::value:'
3331
3332
;;
3333
(test-tarball)
3334
_arguments \
3335
"(--help -h --dereference)"{-h,--dereference}'[Follow symlinks; archive the files they point to]' \
3336
'(- *)'--help'[Show help and exit]'
3337
3338
;;
3339
(test-tempname)
3340
_arguments \
3341
"(--help --time)"--time'[SUFFIX Generate names based on the time of the day]:suffix:' \
3342
"(--help --tag)"--tag'[NAME Try to use NAME as the differentiator]:name:' \
3343
'(- *)'--help'[Show help and exit]' \
3344
'*:basename:'
3345
3346
;;
3347
(test-terminal-size)
3348
_arguments \
3349
'(- *)'--help'[Show help and exit]'
3350
3351
;;
3352
(test-th-eval)
3353
_arguments \
3354
"(--help --cgi)"--cgi'[Include a CGI response header in the output]' \
3355
"(--help --http)"--http'[Include an HTTP response header in the output]' \
3356
"(--help --open-config)"--open-config'[Open the configuration database]' \
3357
"(--help --set-anon-caps)"--set-anon-caps'[Set anonymous login capabilities]' \
3358
"(--help --set-user-caps)"--set-user-caps'[Set user login capabilities]' \
3359
"(--help --th-trace)"--th-trace'[Trace TH1 execution]' \
3360
'(- *)'--help'[Show help and exit]' \
3361
'1:script:_files'
3362
3363
;;
3364
(test-th-render)
3365
_arguments \
3366
"(--help --cgi)"--cgi'[Include a CGI response header in the output]' \
3367
"(--help --http)"--http'[Include an HTTP response header in the output]' \
3368
"(--help --open-config)"--open-config'[Open the configuration database]' \
3369
"(--help --set-anon-caps)"--set-anon-caps'[Set anonymous login capabilities]' \
3370
"(--help --set-user-caps)"--set-user-caps'[Set user login capabilities]' \
3371
"(--help --th-trace)"--th-trace'[Trace TH1 execution]' \
3372
'(- *)'--help'[Show help and exit]' \
3373
'1:file:_files'
3374
3375
;;
3376
(test-th-source)
3377
_arguments \
3378
"(--help --cgi)"--cgi'[Include a CGI response header in the output]' \
3379
"(--help --http)"--http'[Include an HTTP response header in the output]' \
3380
"(--help --open-config)"--open-config'[Open the configuration database]' \
3381
"(--help --set-anon-caps)"--set-anon-caps'[Set anonymous login capabilities]' \
3382
"(--help --set-user-caps)"--set-user-caps'[Set user login capabilities]' \
3383
"(--help --th-trace)"--th-trace'[Trace TH1 execution]' \
3384
'(- *)'--help'[Show help and exit]' \
3385
'1:file:_files'
3386
3387
;;
3388
(test-ticket-rebuild)
3389
_arguments \
3390
'(- *)'--help'[Show help and exit]' \
3391
'1:ticket id:(all)'
3392
3393
;;
3394
(test-timespan)
3395
_arguments \
3396
'(- *)'--help'[Show help and exit]' \
3397
'1:timestamp:'
3398
3399
;;
3400
(test-timewarp-list)
3401
_arguments \
3402
'(- *)'--help'[Show help and exit]' \
3403
'*:files:_files'
3404
3405
;;
3406
(test-topological-sort)
3407
_arguments \
3408
'(- *)'--help'[Show help and exit]'
3409
3410
;;
3411
(test-tree-name)
3412
_arguments \
3413
"(--help --absolute)"--absolute'[Return an absolute path instead of a relative one]' \
3414
"(--help --case-sensitive)"--case-sensitive'[BOOL Enable or disable case-sensitive filenames]:bool:(yes no)' \
3415
'(- *)'--help'[Show help and exit]'
3416
3417
;;
3418
(test-unclustered)
3419
_arguments \
3420
'(- *)'--help'[Show help and exit]'
3421
3422
;;
3423
(test-uncompress)
3424
_arguments \
3425
'(- *)'--help'[Show help and exit]' \
3426
'1:in:_files' \
3427
'2:out:_files'
3428
3429
;;
3430
(test-unsent)
3431
_arguments \
3432
'(- *)'--help'[Show help and exit]'
3433
3434
;;
3435
(test-urlparser)
3436
_arguments \
3437
"(--help --remember)"--remember'[Store results in last-sync-url]' \
3438
"(--help --prompt-pw)"--prompt-pw'[Prompt for password if missing]' \
3439
'(- *)'--help'[Show help and exit]' \
3440
'1:url:__fossil_urls'
3441
3442
;;
3443
(test-usernames)
3444
_arguments \
3445
'(- *)'--help'[Show help and exit]'
3446
3447
;;
3448
(test-valid-for-windows)
3449
_arguments \
3450
'(- *)'--help'[Show help and exit]' \
3451
'*:files:_files'
3452
3453
;;
3454
(test-var-get)
3455
_arguments \
3456
'(- *)'--help'[Show help and exit]' \
3457
'1:var:' \
3458
'2::file:_files'
3459
3460
;;
3461
(test-var-list)
3462
_arguments \
3463
"(--help --unset)"--unset'[Delete entries instead of displaying them]' \
3464
"(--help --mtime)"--mtime'[Show last modification time]' \
3465
'(- *)'--help'[Show help and exit]' \
3466
'1::pattern:'
3467
3468
;;
3469
(test-var-set)
3470
_arguments \
3471
"(--help --blob --file)"--blob'[FILE Binary file to read from]:file:_files' \
3472
"(--help --file --blob)"--file'[FILE File to read from]:file:_files' \
3473
'(- *)'--help'[Show help and exit]' \
3474
'1:var:' \
3475
'2::value:'
3476
3477
;;
3478
(test-verify-all)
3479
_arguments \
3480
'(- *)'--help'[Show help and exit]'
3481
3482
;;
3483
(test-whatis-all)
3484
_arguments \
3485
'(- *)'--help'[Show help and exit]'
3486
3487
;;
3488
(test-which)
3489
_arguments \
3490
'(- *)'--help'[Show help and exit]' \
3491
'*:executable name:'
3492
3493
;;
3494
(test-wiki-relink)
3495
_arguments \
3496
'(- *)'--help'[Show help and exit]' \
3497
'1:wiki page:($(__fossil_wiki_pages))'
3498
3499
;;
3500
(test-wiki-render)
3501
_arguments \
3502
"(--help --buttons)"--buttons'[Set the WIKI_BUTTONS flag]' \
3503
"(--help --htmlonly)"--htmlonly'[Set the WIKI_HTMLONLY flag]' \
3504
"(--help --linksonly)"--linksonly'[Set the WIKI_LINKSONLY flag]' \
3505
"(--help --nobadlinks)"--nobadlinks'[Set the WIKI_NOBADLINKS flag]' \
3506
"(--help --inline)"--inline'[Set the WIKI_INLINE flag]' \
3507
"(--help --noblock)"--noblock'[Set the WIKI_NOBLOCK flag]' \
3508
'(- *)'--help'[Show help and exit]' \
3509
'1:file:_files'
3510
3511
;;
3512
(test-without-rowid)
3513
_arguments \
3514
"(--help -n --dryrun)"{-n,--dryrun}'[Just print what would happen]' \
3515
'(- *)'--help'[Show help and exit]' \
3516
'*:files:_files'
3517
3518
;;
3519
(test-xfer)
3520
_arguments \
3521
'(- *)'--help'[Show help and exit]' \
3522
'1:xfer message:'
3523
3524
;;
3525
esac
3526
}
3527
3528
################################################################################
3529
_fossil
3530
3531

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button