Add completions for Asciidoctor

This commit is contained in:
Shun Sakai
2020-05-13 19:27:48 +09:00
committed by ridiculousfish
parent 46c253b9d6
commit ed4dd1dd4d
2 changed files with 45 additions and 1 deletions

View File

@@ -32,6 +32,7 @@
#### Completions
- Added completions for
- `asciidoctor`
- `dhclient`
- `dropdb`, `createdb`, `pg_restore`, `pg_dump` and `pg_dumpall`
- `gitk`
@@ -42,7 +43,7 @@
- `windscribe`
- `wireshark`, `tshark`, and `dumpcap`
- `zopfli`, and `zopflipng`
- fish no longer inserts a space after a completion ending in `.` or `,` was accepted (#6928).
- fish no longer inserts a space after a completion ending in `.` or `,` was accepted (#6928).
- When pressing Tab, fish displays ambiguous completions even when they have a common prefix, without the user having to press Tab again (#6924).
### Deprecations and removed features

View File

@@ -0,0 +1,43 @@
complete -x -c asciidoctor -a "
(
__fish_complete_suffix .asciidoc
__fish_complete_suffix .adoc
__fish_complete_suffix .ad
__fish_complete_suffix .asc
__fish_complete_suffix .txt
)
"
# Security Settings
complete -c asciidoctor -s B -l base-dir -d "Base directory containing the document"
complete -x -c asciidoctor -s S -l safe-mode -a "unsafe safe server secure" -d "Set safe mode level"
complete -c asciidoctor -l safe -d "Set safe mode level to safe"
# Document Settings
complete -c asciidoctor -s a -l attribute -d "Define a document attribute"
complete -x -c asciidoctor -s b -l backend -a "html5 docbook5 manpage" -d "Backend output file format"
complete -x -c asciidoctor -s d -l doctype -a "article book manpage inline" -d "Document type"
# Document Conversion
complete -c asciidoctor -s D -l destination-dir -d "Destination output directory"
complete -c asciidoctor -s E -l template-engine -d "Template engine to use"
complete -x -c asciidoctor -l eruby -a "erb erubis" -d "eRuby implementation to use"
complete -c asciidoctor -s I -l load-path -d "Add a directory to the load path"
complete -c asciidoctor -s n -l section-numbers -d "Auto-number section titles"
complete -c asciidoctor -s o -l out-file -d "Output file"
complete -c asciidoctor -s R -l source-dir -d "Source directory"
complete -c asciidoctor -s r -l require -d "Require the specified library"
complete -c asciidoctor -s s -l no-header-footer -d "Output an embedded document"
complete -c asciidoctor -s T -l template-dir -d "A directory containing custom converter templates"
# Processing Information
complete -x -c asciidoctor -l failure-level -a "WARN ERROR INFO" -d "Minimum logging level"
complete -c asciidoctor -s q -l quiet -d "Be quiet"
complete -c asciidoctor -l trace -d "Include backtrace information"
complete -c asciidoctor -s v -l verbose -d "Be verbose"
complete -c asciidoctor -s w -l warnings -d "Turn on script warnings"
complete -c asciidoctor -s t -l timings -d "Print timings report"
# Program Information
complete -x -c asciidoctor -s h -l help -a "manpage" -d "Print a help message"
complete -c asciidoctor -s V -l version -d "Print program version"