final readonly class Hello { use HasConsole; #[ConsoleCommand] public function world(string $name): void { $this->success("Hello {$name}!"); } }
./vendor/bin/tempest hello:world Brent
Hello Brent
final readonly class Hello { use HasConsole; #[ConsoleCommand] public function world( string $name, string $greeting = 'Hello', bool $continue = false, ): void { $this->success("Hello {$name}!"); if (! $continue && ! $this->confirm('Continue?')) { $this->error('Stopped'); return; } // … } }
Built-in interactive components, and much more.