From b7f45c37839cc5c65b25a6aede7f0d5981e92c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Martinez?= Date: Tue, 7 Jun 2016 16:50:28 +0200 Subject: [PATCH] Add godoc autocomplete --- share/completions/godoc.fish | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 share/completions/godoc.fish diff --git a/share/completions/godoc.fish b/share/completions/godoc.fish new file mode 100644 index 000000000..48d38761e --- /dev/null +++ b/share/completions/godoc.fish @@ -0,0 +1,25 @@ +complete -x -c godoc -l analysis -o analysis -d "Comma-separated list of analyses to perform" +complete -c godoc -l ex -o ex -d "Show examples in command line mode" +complete -r -c godoc -l goroot -o goroot -d "Go root directory" +complete -c godoc -l html -o html -d "Print HTML in command-line mode" +complete -x -c godoc -l http -o http -d "HTTP service address" +complete -c godoc -l httptest.serve -o httptest.serve -d "httptest.NewServer serves on this address and blocks" +complete -c godoc -l index -o index -d "Enable search index" +complete -c godoc -l index_files -o index_files -d "Glob pattern specifying index files" +complete -x -c godoc -l index_interval -o index_interval -d "Interval of indexing" +complete -x -c godoc -l index_throttle -o index_throttle -d "Index throttle value" +complete -c godoc -l links -o links -d "Link identifiers to their declarations" +complete -x -c godoc -l maxresults -o maxresults -d "Maximum number of full text search results shown" +complete -x -c godoc -l notes -o notes -d "Regular expression matching note markers to show" +complete -c godoc -l play -o play -d "Enable playground in web interface" +complete -c godoc -s q -d "Arguments are considered search queries" +complete -c godoc -l server -o server -d "Webserver address for command line searches" +complete -c godoc -l src -o src -d "Print (exported) source in command-line mode" +complete -x -c godoc -l tabwidth -o tabwidth -d "Tab width" +complete -r -c godoc -l templates -o templates -d "Directory containing alternate template files" +complete -c godoc -l timestamps -o timestamps -d "Show timestamps with directory listings" +complete -r -c godoc -l url -o url -d "Print HTML for named URL" +complete -c godoc -s v -d "Verbose mode" +complete -r -c godoc -l write_index -o write_index -d "Write index to a file" +complete -r -c godoc -l zip -o zip -d "Zip file providing the file system to serve" +