MCPcopy Create free account
hub / github.com/celer-pkg/celer / save

Method save

configs/celer_update.go:62–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62func (c *Celer) save() error {
63 bytes, err := toml.Marshal(c)
64 if err != nil {
65 return err
66 }
67
68 celerPath := filepath.Join(dirs.WorkspaceDir, "celer.toml")
69 if err := os.WriteFile(celerPath, bytes, os.ModePerm); err != nil {
70 return err
71 }
72
73 return nil
74}
75
76func (c *Celer) SetBuildType(buildtype string) error {
77 buildtype = strings.ToLower(buildtype)

Callers 15

SetBuildTypeMethod · 0.95
SetDownloadsMethod · 0.95
SetJobsMethod · 0.95
SetPlatformMethod · 0.95
SetProjectMethod · 0.95
SetOfflineMethod · 0.95
SetVerboseMethod · 0.95
SetPkgCacheDirMethod · 0.95
SetPkgCacheWritableMethod · 0.95
CacheArtifactsMethod · 0.95
CacheDownloadsMethod · 0.95
SetProxyHostMethod · 0.95

Calls 1

WriteFileMethod · 0.80

Tested by

no test coverage detected