Hi Dracony.

Thanks for stepping up. I had some similar ideas recently with
implementing a kind of Middleware for CLI-APplications.

Am 27.06.16 um 09:57 schrieb Dracony:
> A year or maybe two ago I proposed a PSR for "tasks", that would allow
> easier chaining of common things like e.g. migrating a database,
> minimizing CSS, etc. Back then it didn't really get much traction I
> believe because PHP world isn't really requiring as much build chains as
> say JS world (where gulp and Grunt plugins are abundant).
> 
> So instead I wanted to rephrase it now as a Command PSR, which is
> basically standardizing something akin to Symfony Command, which would
> be really really useful, since then you wouldn't need a special service
> provider to get Doctrine migrations in Silex, etc. A common interface
> would be very simple to achieve, but it requires standardizing the CLI
> interface first. So let's do that!
> 
> Ok, so to describe the CLI interface we need:
> 
>   * Input/Output streams for input, output and error
>   * Methods to get options and arguments
>   * Method to get current working directory

Personally I think setting up Input and Output-Streams for CLIs similar
to PSR7/Middleware will resolve the issue of getting options and
arguments. So I'd try to focus on that one. And there's already a
standardized way to get the current working directory:
http://php.net/getcwd - I don't think that a further one is needed.

So let's get going with "CLI-Message interfaces"

Cheers

Andreas

-- 
                                                              ,,,
                                                             (o o)
+---------------------------------------------------------ooO-(_)-Ooo-+
| Andreas Heigl                                                       |
| mailto:andr...@heigl.org                  N 50°22'59.5" E 08°23'58" |
| http://andreas.heigl.org                       http://hei.gl/wiFKy7 |
+---------------------------------------------------------------------+
| http://hei.gl/root-ca                                               |
+---------------------------------------------------------------------+

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to php-fig+unsubscr...@googlegroups.com.
To post to this group, send email to php-fig@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/79b1f659-1eed-0523-c31b-7bb352aade69%40heigl.org.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to