// cell help - Display help information for cell commands var fd = use('fd') var command = args.length > 0 ? args[0] : null // Display specific command help if (command) { var man_file = 'scripts/man/' + command + '.man' var stat = fd.stat(man_file); if (stat && stat.isFile) { var content = text(fd.slurp(man_file)) log.console(content) } else { log.error("No help available for command: " + command) log.console("Run 'cell help' to see available commands.") } $stop() return } // Display general help var cell_man = 'scripts/man/cell.man' var stat = fd.stat(cell_man); if (stat && stat.isFile) { var content = text(fd.slurp(cell_man)) log.console(content) } else { // Fallback if man file doesn't exist log.console("cell - The Cell package manager") log.console("") log.console("Usage: cell [arguments]") log.console("") log.console("Package Management:") log.console(" install Install a package and its dependencies") log.console(" update [locator] Update packages from remote sources") log.console(" remove Remove a package from the shop") log.console(" add Add a dependency to current package") log.console("") log.console("Building:") log.console(" build [locator] Build dynamic libraries for packages") log.console(" clean [scope] Remove build artifacts") log.console("") log.console("Linking (Local Development):") log.console(" link Link a package to a local path") log.console(" unlink Remove a package link") log.console(" clone Clone and link a package locally") log.console("") log.console("Information:") log.console(" list [scope] List packages and dependencies") log.console(" ls [locator] List modules and actors in a package") log.console(" why Show reverse dependencies") log.console(" search Search for packages, modules, or actors") log.console("") log.console("Diagnostics:") log.console(" resolve [locator] Print fully resolved dependency closure") log.console(" graph [locator] Emit dependency graph (tree, dot, json)") log.console(" verify [scope] Verify integrity and consistency") log.console("") log.console("Other:") log.console(" help [command] Show help for a command") log.console(" version Show cell version") log.console("") log.console("Run 'cell --help' for more information on a command.") } $stop()