github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/integrations/go_posix.mx (about) 1 !if { man-summary go } then { 2 summary go "Go is a tool for managing Go source code" 3 } 4 5 private go-package { 6 # returns all the packages in $GOPATH 7 find <!null> $GOPATH/src/ -type d -not -path */.* -> sed -r s:$GOPATH/src/:: 8 } 9 10 autocomplete set go %[{ 11 Flags: [ help ] 12 13 DynamicDesc: %({ 14 go help -> [^The commands are..^Use]r -> tabulate --map 15 }) 16 17 FlagValues: { 18 get: [{ 19 Flags: [ github.com/ ] 20 }] 21 22 test: [{ 23 Dynamic: %({ go-package }) 24 AutoBranch: true 25 Flags: [ "./..." ] 26 }] 27 28 mod: [{ 29 DynamicDesc: %({ 30 go help mod -> [^The commands are..^Use]r -> tabulate: --map 31 }) 32 }] 33 34 help: [{ 35 DynamicDesc: %({ 36 go help -> tabulate --map 37 }) 38 }] 39 40 run: [{ Dynamic: %({ go-package }), AutoBranch: true }] 41 build: [{ Dynamic: %({ go-package }), AutoBranch: true }] 42 install: [{ Dynamic: %({ go-package }), AutoBranch: true }] 43 44 fmt: [{ IncFiles: true }] 45 vet: [{ IncFiles: true }] 46 generate: [{ IncFiles: true }] 47 } 48 }]