Files
cell/clean.ce
2025-12-18 18:43:23 -06:00

26 lines
483 B
Plaintext

// cell clean - Remove build artifacts from global shop
var fd = use('fd')
var shop = use('shop')
var build_dir = shop.get_shop_path() + '/build'
if (!fd.is_dir(build_dir)) {
log.console("No build directory found at " + build_dir)
$stop()
return
}
log.console("Cleaning build artifacts...")
// Remove the build directory
try {
fd.rm(build_dir)
log.console("Build directory removed: " + build_dir)
} catch (e) {
log.error(e)
}
log.console("Clean complete!")
$stop()