MCPcopy Create free account
hub / github.com/belak/gitdir / ensureAdminConfig

Method ensureAdminConfig

config_admin.go:8–14  ·  view source on GitHub ↗
(repo *git.Repository)

Source from the content-addressed store, hash-verified

6)
7
8func (c *Config) ensureAdminConfig(repo *git.Repository) error {
9 return newMultiError(
10 c.ensureAdminConfigYaml(repo),
11 c.ensureAdminEd25519Key(repo),
12 c.ensureAdminRSAKey(repo),
13 )
14}
15
16func (c *Config) ensureAdminConfigYaml(repo *git.Repository) error {
17 return repo.UpdateFile("config.yml", ensureSampleConfig)

Callers 2

ensureConfigMethod · 0.95
EnsureAdminUserMethod · 0.95

Calls 4

ensureAdminConfigYamlMethod · 0.95
ensureAdminEd25519KeyMethod · 0.95
ensureAdminRSAKeyMethod · 0.95
newMultiErrorFunction · 0.85

Tested by

no test coverage detected