Tac Tacelosky
Tac Tacelosky
I like that format, I'll play around with it. I wonder if ?bool should be handled differently, since it's really a flag to the command. That is, generate the equivalent...
I've played around some more, this is now working, though the internals are kinda ugly. ```bash bin/console survos:make:command app:greet \ string:message:"What do you want to say?" \ array:names:"Who do you...
> Additional, making it interactive like `make:entity` would be very useful I think! This is how I incorporate make:entity into a script with multiple fields: ```bash cat
Yeah, my use case is a bit funky -- I want to have a single bash script that can create a complete application (and related tutorial), without ever opening an...
Ah, I had put it in the wrong spot, it needs to be set in configure() ```php public function configure(): void { $this->setHelp("This is the help for my:command"); } ```
What do you think about a class attribute for help, so as to avoid calling this, ```php #[AsCommand('my:command', 'From the extra-console documentation')] #[CommandHelp(help: 'This is the help for my:command'] final...
>> Could this work? Wouldn't that mean there would be two files for every command? The shell and the class that uses it? I have several simple utilities in various...
I'm getting close, but getting the error Cannot add a required argument "msg" after an optional one "command". If I remove the #[AsCommand()] attribute I get the folllowing, even though...
Yes, this runs! ```php #!/usr/bin/env php
How do I inject services? I'm trying replace a bash script that's a bunch of bin/console calls to Symfony commands, and I'd like to wrap them in a single command...