MCPcopy Create free account
hub / github.com/dagger/dagger / makeGitCredentials

Function makeGitCredentials

core/integration/module_test.go:8104–8111  ·  view source on GitHub ↗
(url string, username string, token string)

Source from the content-addressed store, hash-verified

8102}
8103
8104func 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
8113func daggerFunctions(args ...string) dagger.WithContainerFunc {
8114 return func(c *dagger.Container) *dagger.Container {

Callers 4

TestAuthClientMethod · 0.85
privateRepoSetupFunction · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected