Skip to content

Core\Command

Runs the commands a command-line program declares with #[Command] methods. It reads the command and its options from the program's arguments, and it prints a help page for each command.

Members

3 members.

MemberSignature
helphelp(?string $name): Core\Cli\Text
runrun(): uint
completionscompletions(Core\Command::Shell $shell): string

Enums

  • ShellWhich shell Core\Command::completions writes a completion script for. There are four cases and no case for other shells. Each script uses the syntax of its own shell, so each case needs its own generator.