MCPcopy Create free account
hub / github.com/SpectoLabs/hoverfly / createSymlink

Function createSymlink

hoverctl/cmd/bash_completion.go:66–77  ·  view source on GitHub ↗
(completionFilePath string, symlinkToCompletionFile string)

Source from the content-addressed store, hash-verified

64}
65
66func createSymlink(completionFilePath string, symlinkToCompletionFile string) error {
67 err := os.Symlink(completionFilePath, symlinkToCompletionFile)
68 if err != nil {
69 return err
70 }
71
72 if verbose {
73 fmt.Printf("Created symbolic link [%q=>%q]\n", completionFilePath, symlinkToCompletionFile)
74 }
75
76 return nil
77}
78
79func createCompletionFile(completionFilePath string) error {
80 if err := RootCmd.GenBashCompletionFile(completionFilePath); err != nil {

Callers 1

bash_completion.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected