(url string, username string, token string)
| 8102 | } |
| 8103 | |
| 8104 | func makeGitCredentials(url string, username string, token string) string { |
| 8105 | helper := fmt.Sprintf(`!f() { test "$1" = get && echo -e "password=%s\nusername=%s"; }; f`, token, username) |
| 8106 | |
| 8107 | contents := bytes.NewBuffer(nil) |
| 8108 | fmt.Fprintf(contents, "[credential %q]\n", url) |
| 8109 | fmt.Fprintf(contents, "\thelper = %q\n", helper) |
| 8110 | return contents.String() |
| 8111 | } |
| 8112 | |
| 8113 | func daggerFunctions(args ...string) dagger.WithContainerFunc { |
| 8114 | return func(c *dagger.Container) *dagger.Container { |
no test coverage detected