CommandInterface
interface CommandInterface (View source)
Defines command metadata and the executable entry point used by the CLI runtime.
Methods
name()
Returns the primary name used to invoke the command.
string
Returns the human-readable summary displayed in command listings.
string
run(array $args)
Executes the command and returns the exit code propagated by the CLI kernel.
int
Details
name
string
name()
Returns the primary name used to invoke the command.
description
string
description()
Returns the human-readable summary displayed in command listings.
run
int
run(array $args)
Executes the command and returns the exit code propagated by the CLI kernel.