MCPcopy
hub / github.com/apptainer/apptainer / main

Function main

cmd/bash_completion/bash_completion.go:20–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18)
19
20func main() {
21 fh, err := os.Create(os.Args[1])
22 if err != nil {
23 fmt.Println(err)
24 return
25 }
26
27 defer fh.Close()
28
29 if err := cli.GenBashCompletion(fh, path.Base(os.Args[1])); err != nil {
30 fmt.Println(err)
31 return
32 }
33}

Callers

nothing calls this directly

Calls 3

GenBashCompletionFunction · 0.92
CreateMethod · 0.65
CloseMethod · 0.45

Tested by

no test coverage detected