aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Clément Martinez <clementmartinezdev@gmail.com>2016-06-07 16:50:28 +0200
committerGravatar Clément Martinez <clementmartinezdev@gmail.com>2016-06-07 16:50:28 +0200
commit5dda908c1f4634051ddcaabe4f97bcd5d79b7f9b (patch)
tree65a033c81a97e11afba9d578bddb81e48db24af3
parentb7f45c37839cc5c65b25a6aede7f0d5981e92c14 (diff)
Add gofmt autocomplete
-rw-r--r--share/completions/gofmt.fish8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/completions/gofmt.fish b/share/completions/gofmt.fish
new file mode 100644
index 00000000..96f3bdca
--- /dev/null
+++ b/share/completions/gofmt.fish
@@ -0,0 +1,8 @@
+complete -c gofmt -l cpuprofile -o cpuprofile -d "Write cpu profile to this file"
+complete -c gofmt -s d -d "Display diffs instead of rewriting files"
+complete -c gofmt -s e -d "Report all errors (not just the first 10 on different lines)"
+complete -c gofmt -s l -d "List files whose formatting differs from gofmt's"
+complete -c gofmt -s r -d "Rewrite rule (e.g., 'a[b:len(a)] -> a[b:]')"
+complete -c gofmt -s s -d "Simplify code"
+complete -c gofmt -s w -d "Write result to (source) file instead of stdout"
+