diff --git a/se/completions/bash/se b/se/completions/bash/se index 7ab9ce42..35cc940c 100644 --- a/se/completions/bash/se +++ b/se/completions/bash/se @@ -2,7 +2,7 @@ _se(){ COMPREPLY=() local cur="${COMP_WORDS[COMP_CWORD]}" local prev="${COMP_WORDS[COMP_CWORD-1]}" - local commands="--help --plain --version british2american build build-ids build-images build-manifest build-spine build-title build-toc clean compare-versions create-draft dec2roman extract-ebook find-mismatched-dashes find-mismatched-diacritics find-unusual-characters help hyphenate interactive-replace lint make-url-safe modernize-spelling prepare-release recompose-epub renumber-endnotes roman2dec semanticate shift-endnotes shift-illustrations split-file titlecase typogrify unicode-names version word-count xpath" + local commands="--help --plain --version british2american build build-ids build-images build-loi build-manifest build-spine build-title build-toc clean compare-versions create-draft dec2roman extract-ebook find-mismatched-dashes find-mismatched-diacritics find-unusual-characters help hyphenate interactive-replace lint make-url-safe modernize-spelling prepare-release recompose-epub renumber-endnotes roman2dec semanticate shift-endnotes shift-illustrations split-file titlecase typogrify unicode-names version word-count xpath" if [[ $COMP_CWORD -gt 1 ]]; then case "${COMP_WORDS[1]}" in british2american) @@ -27,6 +27,10 @@ _se(){ COMPREPLY+=($(compgen -W "-h --help -v --verbose" -- "${cur}")) COMPREPLY+=($(compgen -d -X ".*" -- "${cur}")) ;; + build-loi) + COMPREPLY+=($(compgen -W "-a -d --default-link-text -h --help --prefer-alt-text" -- "${cur}")) + COMPREPLY+=($(compgen -d -X ".*" -- "${cur}")) + ;; build-manifest) COMPREPLY+=($(compgen -W "-h --help -s --stdout" -- "${cur}")) COMPREPLY+=($(compgen -d -X ".*" -- "${cur}")) diff --git a/se/completions/fish/se.fish b/se/completions/fish/se.fish index 4de794bd..b243165d 100644 --- a/se/completions/fish/se.fish +++ b/se/completions/fish/se.fish @@ -1,6 +1,6 @@ function __fish_se_no_subcommand --description "Test if se has yet to be given the subcommand" for i in (commandline -opc) - if contains -- $i british2american build build-ids build-images build-manifest build-spine build-title build-toc clean compare-versions create-draft css-select dec2roman extract-ebook find-mismatched-dashes find-mismatched-diacritics find-unusual-characters help hyphenate interactive-replace lint make-url-safe modernize-spelling prepare-release recompose-epub renumber-endnotes roman2dec semanticate shift-endnotes shift-illustrations split-file titlecase typogrify unicode-names version word-count xpath + if contains -- $i british2american build build-ids build-images build-loi build-manifest build-spine build-title build-toc clean compare-versions create-draft css-select dec2roman extract-ebook find-mismatched-dashes find-mismatched-diacritics find-unusual-characters help hyphenate interactive-replace lint make-url-safe modernize-spelling prepare-release recompose-epub renumber-endnotes roman2dec semanticate shift-endnotes shift-illustrations split-file titlecase typogrify unicode-names version word-count xpath return 1 end end @@ -114,6 +114,11 @@ complete -c se -A -n "__fish_seen_subcommand_from prepare-release" -s r -l no-re complete -c se -A -n "__fish_seen_subcommand_from prepare-release" -s w -l no-word-count -d "don’t calculate word count" complete -c se -A -n "__fish_seen_subcommand_from prepare-release" -s v -l verbose -d "increase output verbosity" +complete -c se -n "__fish_se_no_subcommand" -a build-loi -d "Update the LoI file based on all
elements that contain an ." +complete -c se -A -n "__fish_seen_subcommand_from build-loi" -s a -l prefer-alt-text -d "prefer alt text over
for these
IDs" +complete -c se -A -n "__fish_seen_subcommand_from build-loi" -s d -l default-link-text -d "link text to use if
or alt text is absent or empty" +complete -c se -A -n "__fish_seen_subcommand_from build-loi" -s h -l help -x -d "show this help message and exit" + complete -c se -n "__fish_se_no_subcommand" -a build-manifest -d "Generate the element for the given Standard Ebooks source directory and write it to the ebook’s metadata file." complete -c se -A -n "__fish_seen_subcommand_from build-manifest" -s h -l help -x -d "show this help message and exit" complete -c se -A -n "__fish_seen_subcommand_from build-manifest" -s s -l stdout -d "print to stdout instead of writing to the metadata file" diff --git a/se/completions/zsh/_se b/se/completions/zsh/_se index 3b014115..a101ef55 100644 --- a/se/completions/zsh/_se +++ b/se/completions/zsh/_se @@ -16,6 +16,7 @@ case $state in "build[Build an ebook from a Standard Ebook source directory.]" \ "build-ids[Change ID attributes for non-sectioning content to their expected values across the entire ebook. IDs must be globally unique and correctly referenced, and the ebook spine must be complete.]" \ "build-images[Build ebook cover and titlepage images in a Standard Ebook source directory.]" \ + "build-loi[Update the LoI file based on all
elements that contain an .]" \ "build-manifest[Generate the element for the given Standard Ebooks source directory and write it to the ebook’s metadata file.]" \ "build-spine[Generate the element for the given Standard Ebooks source directory and write it to the ebook’s metadata file.]" \ "build-title[Generate the title of an XHTML file based on its headings and update the file’s element.]" \ @@ -83,6 +84,13 @@ case $state in {-v,--verbose}'[increase output verbosity]' \ '*: :_directories' ;; + build-loi) + _arguments -s \ + {-a,--prefer-alt-text}'[prefer alt text over <figcaption> for these <figure> IDs]' \ + {-d,--default-link-text}'[link text to use if <figcaption> or alt text is absent or empty]' \ + {-h,--help}'[show a help message and exit]' \ + '*: :_directories' + ;; build-manifest) _arguments -s \ {-h,--help}'[show a help message and exit]' \