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

Method overrideFlags

cmds/cmd_install.go:210–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208}
209
210func (i *installCmd) overrideFlags() error {
211 if i.jobsChanged {
212 if i.jobs <= 0 {
213 return fmt.Errorf("--jobs must be greater than 0")
214 }
215 i.celer.SetJobs(i.jobs)
216 }
217
218 if i.verboseChanged {
219 i.celer.SetVerbose(i.verbose)
220 }
221
222 return nil
223}
224
225func (i *installCmd) buildSuggestions(suggestions *[]string, portDir string, toComplete string) {
226 err := filepath.WalkDir(portDir, func(path string, entity fs.DirEntry, err error) error {

Callers 1

runInstallMethod · 0.95

Calls 2

SetJobsMethod · 0.80
SetVerboseMethod · 0.80

Tested by

no test coverage detected