You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'-s+[Set the shell for generating completions \[values: bash, elvish, fish, powershell, zsh, nushell\]]:SHELL:(bash elvish fish powershell zsh nushell)' \
145
+
'--shell=[Set the shell for generating completions \[values: bash, elvish, fish, powershell, zsh, nushell\]]:SHELL:(bash elvish fish powershell zsh nushell)' \
146
+
'-g+[Location of the global configuration]:GLOBAL_CONFIG:_files' \
147
+
'--global-config=[Location of the global configuration]:GLOBAL_CONFIG:_files' \
148
+
'-l+[Location of the local configuration]:LOCAL_CONFIG:_files' \
149
+
'--local-config=[Location of the local configuration]:LOCAL_CONFIG:_files' \
150
+
'-d[Dry run - don'\''t do anything, only print information. Implies -v at least once]' \
151
+
'--dry-run[Dry run - don'\''t do anything, only print information. Implies -v at least once]' \
152
+
'*-v[Verbosity level - specify up to 3 times to get more detailed output. Specifying at least once prints the differences between what was before and after Dotter'\''s run]' \
153
+
'*--verbose[Verbosity level - specify up to 3 times to get more detailed output. Specifying at least once prints the differences between what was before and after Dotter'\''s run]' \
154
+
'-q[Quiet - only print errors]' \
155
+
'--quiet[Quiet - only print errors]' \
156
+
'-f[Force - instead of skipping, overwrite target files if their content is unexpected. Overrides --dry-run]' \
157
+
'--force[Force - instead of skipping, overwrite target files if their content is unexpected. Overrides --dry-run]' \
158
+
'-y[Assume "yes" instead of prompting when removing empty directories]' \
159
+
'--noconfirm[Assume "yes" instead of prompting when removing empty directories]' \
160
+
'-p[Take standard input as an additional files/variables patch, added after evaluating `local.toml`. Assumes --noconfirm flag because all of stdin is taken as the patch]' \
161
+
'--patch[Take standard input as an additional files/variables patch, added after evaluating `local.toml`. Assumes --noconfirm flag because all of stdin is taken as the patch]' \
'undeploy:Delete all deployed files from their target locations. Note that this operates on all files that are currently in cache' \
188
216
'init:Initialize global.toml with a single package containing all the files in the current directory pointing to a dummy value and a local.toml that selects that package' \
189
217
'watch:Run continuously, watching the repository for changes and deploying as soon as they happen. Can be ran with `--dry-run`' \
218
+
'gen-completions:Generate shell completions' \
190
219
'help:Print this message or the help of the given subcommand(s)' \
_describe -t commands 'dotter help gen-completions commands' commands "$@"
242
+
}
204
243
(( $+functions[_dotter__help_commands] )) ||
205
244
_dotter__help_commands() {
206
245
local commands; commands=(
207
246
'deploy:Deploy the files to their respective targets. This is the default subcommand' \
208
247
'undeploy:Delete all deployed files from their target locations. Note that this operates on all files that are currently in cache' \
209
248
'init:Initialize global.toml with a single package containing all the files in the current directory pointing to a dummy value and a local.toml that selects that package' \
210
249
'watch:Run continuously, watching the repository for changes and deploying as soon as they happen. Can be ran with `--dry-run`' \
250
+
'gen-completions:Generate shell completions' \
211
251
'help:Print this message or the help of the given subcommand(s)' \
212
252
)
213
253
_describe -t commands 'dotter help commands' commands "$@"
[CompletionResult]::new('undeploy','undeploy', [CompletionResultType]::ParameterValue,'Delete all deployed files from their target locations. Note that this operates on all files that are currently in cache')
53
53
[CompletionResult]::new('init','init', [CompletionResultType]::ParameterValue,'Initialize global.toml with a single package containing all the files in the current directory pointing to a dummy value and a local.toml that selects that package')
54
54
[CompletionResult]::new('watch','watch', [CompletionResultType]::ParameterValue,'Run continuously, watching the repository for changes and deploying as soon as they happen. Can be ran with `--dry-run`')
[CompletionResult]::new('--help','help', [CompletionResultType]::ParameterName,'Print help information')
140
141
break
141
142
}
143
+
'dotter;gen-completions' {
144
+
[CompletionResult]::new('-s','s', [CompletionResultType]::ParameterName,'Set the shell for generating completions [values: bash, elvish, fish, powershell, zsh, nushell]')
145
+
[CompletionResult]::new('--shell','shell', [CompletionResultType]::ParameterName,'Set the shell for generating completions [values: bash, elvish, fish, powershell, zsh, nushell]')
146
+
[CompletionResult]::new('-g','g', [CompletionResultType]::ParameterName,'Location of the global configuration')
147
+
[CompletionResult]::new('--global-config','global-config', [CompletionResultType]::ParameterName,'Location of the global configuration')
148
+
[CompletionResult]::new('-l','l', [CompletionResultType]::ParameterName,'Location of the local configuration')
149
+
[CompletionResult]::new('--local-config','local-config', [CompletionResultType]::ParameterName,'Location of the local configuration')
150
+
[CompletionResult]::new('-d','d', [CompletionResultType]::ParameterName,'Dry run - don''t do anything, only print information. Implies -v at least once')
151
+
[CompletionResult]::new('--dry-run','dry-run', [CompletionResultType]::ParameterName,'Dry run - don''t do anything, only print information. Implies -v at least once')
152
+
[CompletionResult]::new('-v','v', [CompletionResultType]::ParameterName,'Verbosity level - specify up to 3 times to get more detailed output. Specifying at least once prints the differences between what was before and after Dotter''s run')
153
+
[CompletionResult]::new('--verbose','verbose', [CompletionResultType]::ParameterName,'Verbosity level - specify up to 3 times to get more detailed output. Specifying at least once prints the differences between what was before and after Dotter''s run')
154
+
[CompletionResult]::new('-q','q', [CompletionResultType]::ParameterName,'Quiet - only print errors')
155
+
[CompletionResult]::new('--quiet','quiet', [CompletionResultType]::ParameterName,'Quiet - only print errors')
156
+
[CompletionResult]::new('-f','f', [CompletionResultType]::ParameterName,'Force - instead of skipping, overwrite target files if their content is unexpected. Overrides --dry-run')
157
+
[CompletionResult]::new('--force','force', [CompletionResultType]::ParameterName,'Force - instead of skipping, overwrite target files if their content is unexpected. Overrides --dry-run')
158
+
[CompletionResult]::new('-y','y', [CompletionResultType]::ParameterName,'Assume "yes" instead of prompting when removing empty directories')
159
+
[CompletionResult]::new('--noconfirm','noconfirm', [CompletionResultType]::ParameterName,'Assume "yes" instead of prompting when removing empty directories')
160
+
[CompletionResult]::new('-p','p', [CompletionResultType]::ParameterName,'Take standard input as an additional files/variables patch, added after evaluating `local.toml`. Assumes --noconfirm flag because all of stdin is taken as the patch')
161
+
[CompletionResult]::new('--patch','patch', [CompletionResultType]::ParameterName,'Take standard input as an additional files/variables patch, added after evaluating `local.toml`. Assumes --noconfirm flag because all of stdin is taken as the patch')
162
+
[CompletionResult]::new('-h','h', [CompletionResultType]::ParameterName,'Print help information')
163
+
[CompletionResult]::new('--help','help', [CompletionResultType]::ParameterName,'Print help information')
164
+
break
165
+
}
142
166
'dotter;help' {
143
167
[CompletionResult]::new('deploy','deploy', [CompletionResultType]::ParameterValue,'Deploy the files to their respective targets. This is the default subcommand')
144
168
[CompletionResult]::new('undeploy','undeploy', [CompletionResultType]::ParameterValue,'Delete all deployed files from their target locations. Note that this operates on all files that are currently in cache')
145
169
[CompletionResult]::new('init','init', [CompletionResultType]::ParameterValue,'Initialize global.toml with a single package containing all the files in the current directory pointing to a dummy value and a local.toml that selects that package')
146
170
[CompletionResult]::new('watch','watch', [CompletionResultType]::ParameterValue,'Run continuously, watching the repository for changes and deploying as soon as they happen. Can be ran with `--dry-run`')
Copy file name to clipboardExpand all lines: completions/dotter.elv
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ set edit:completion:arg-completer[dotter] = {|@words|
49
49
cand undeploy 'Delete all deployed files from their target locations. Note that this operates on all files that are currently in cache'
50
50
cand init 'Initialize global.toml with a single package containing all the files in the current directory pointing to a dummy value and a local.toml that selects that package'
51
51
cand watch 'Run continuously, watching the repository for changes and deploying as soon as they happen. Can be ran with `--dry-run`'
52
+
cand gen-completions 'Generate shell completions'
52
53
cand help 'Print this message or the help of the given subcommand(s)'
53
54
}
54
55
&'dotter;deploy'= {
@@ -131,11 +132,34 @@ set edit:completion:arg-completer[dotter] = {|@words|
131
132
cand -h 'Print help information'
132
133
cand --help 'Print help information'
133
134
}
135
+
&'dotter;gen-completions'= {
136
+
cand -s 'Set the shell for generating completions [values: bash, elvish, fish, powershell, zsh, nushell]'
137
+
cand --shell 'Set the shell for generating completions [values: bash, elvish, fish, powershell, zsh, nushell]'
138
+
cand -g 'Location of the global configuration'
139
+
cand --global-config 'Location of the global configuration'
140
+
cand -l 'Location of the local configuration'
141
+
cand --local-config 'Location of the local configuration'
142
+
cand -d 'Dry run - don''t do anything, only print information. Implies -v at least once'
143
+
cand --dry-run 'Dry run - don''t do anything, only print information. Implies -v at least once'
144
+
cand -v 'Verbosity level - specify up to 3 times to get more detailed output. Specifying at least once prints the differences between what was before and after Dotter''s run'
145
+
cand --verbose 'Verbosity level - specify up to 3 times to get more detailed output. Specifying at least once prints the differences between what was before and after Dotter''s run'
146
+
cand -q 'Quiet - only print errors'
147
+
cand --quiet 'Quiet - only print errors'
148
+
cand -f 'Force - instead of skipping, overwrite target files if their content is unexpected. Overrides --dry-run'
149
+
cand --force 'Force - instead of skipping, overwrite target files if their content is unexpected. Overrides --dry-run'
150
+
cand -y 'Assume "yes" instead of prompting when removing empty directories'
151
+
cand --noconfirm 'Assume "yes" instead of prompting when removing empty directories'
152
+
cand -p 'Take standard input as an additional files/variables patch, added after evaluating `local.toml`. Assumes --noconfirm flag because all of stdin is taken as the patch'
153
+
cand --patch 'Take standard input as an additional files/variables patch, added after evaluating `local.toml`. Assumes --noconfirm flag because all of stdin is taken as the patch'
154
+
cand -h 'Print help information'
155
+
cand --help 'Print help information'
156
+
}
134
157
&'dotter;help'= {
135
158
cand deploy 'Deploy the files to their respective targets. This is the default subcommand'
136
159
cand undeploy 'Delete all deployed files from their target locations. Note that this operates on all files that are currently in cache'
137
160
cand init 'Initialize global.toml with a single package containing all the files in the current directory pointing to a dummy value and a local.toml that selects that package'
138
161
cand watch 'Run continuously, watching the repository for changes and deploying as soon as they happen. Can be ran with `--dry-run`'
162
+
cand gen-completions 'Generate shell completions'
139
163
cand help 'Print this message or the help of the given subcommand(s)'
140
164
}
141
165
&'dotter;help;deploy'= {
@@ -146,6 +170,8 @@ set edit:completion:arg-completer[dotter] = {|@words|
0 commit comments