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

Method checkIfInitialized

cmds/cmd_configure.go:251–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249}
250
251func (c configureCmd) checkIfInitialized() error {
252 if !fileio.PathExists(filepath.Join(dirs.WorkspaceDir, "celer.toml")) {
253 return fmt.Errorf("celer.toml not found")
254 }
255 if !fileio.PathExists(dirs.PortsDir) {
256 return fmt.Errorf("ports directory not found")
257 }
258 return nil
259}
260
261func (c *configureCmd) configureMain(flags *pflag.FlagSet) error {
262 if flags.Changed("platform") {

Callers 1

CommandMethod · 0.95

Calls 1

PathExistsFunction · 0.92

Tested by

no test coverage detected