fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Clément MartinezAdd mdbook completions46ab1a155

master
1.2 KiB19 linesraw
1set -l cmds build help init serve test watch
2
3complete -c mdbook -f
4complete -c mdbook -s l -l help -d "Prints help"
5complete -c mdbook -s V -l version -d "Prints version"
6
7complete -c mdbook -n "not __fish_seen_subcommand_from $cmds" -a build -d "Build book from markdown files"
8complete -c mdbook -n "not __fish_seen_subcommand_from $cmds" -a help -d "Prints help"
9
10complete -c mdbook -n "not __fish_seen_subcommand_from $cmds" -a init -d "Create boilerplate structure and files in directory"
11complete -c mdbook -n "__fish_seen_subcommand_from init" -l force -d "Skip confirmation prompts"
12complete -c mdbook -n "__fish_seen_subcommand_from init" -l theme -d "Copy default theme into source folder"
13
14complete -c mdbook -n "not __fish_seen_subcommand_from $cmds" -a serve -d "Serve book at http://localhost:3000"
15complete -c mdbook -n "__fish_seen_subcommand_from serve" -l port -s p -x -d "Use another port (default 3000)"
16complete -c mdbook -n "__fish_seen_subcommand_from serve" -l websocket-port -s w -x -d "Use another port for websocket (default 3001)"
17
18complete -c mdbook -n "not __fish_seen_subcommand_from $cmds" -a test -d "Test that code samples compile"
19complete -c mdbook -n "not __fish_seen_subcommand_from $cmds" -a watch -d "Watch file changes"