()
| 249 | } |
| 250 | |
| 251 | func (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 | |
| 261 | func (c *configureCmd) configureMain(flags *pflag.FlagSet) error { |
| 262 | if flags.Changed("platform") { |