// cell init - Initialize a new .cell program shop

var io = use('io')
var shop = use('shop')

// Initialize the .cell directory structure
log.console("Initializing .cell program shop...")

var success = shop.init()

if (success) {
  log.console("Created .cell directory structure:")
  log.console("  .cell/")
  log.console("  ├── cell.toml       (manifest)")
  log.console("  ├── lock.toml       (checksums)")
  log.console("  ├── modules/        (vendored source)")
  log.console("  ├── build/          (compiled modules)")
  log.console("  └── patches/        (patches)")
  log.console("")
  log.console("Edit .cell/cell.toml to configure your project.")
} else {
  log.error("Failed to initialize .cell directory")
}

$_.stop()