Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Pass arbitrary options to the underlying docker-compose commands #61

Open
kriszkern opened this issue Jul 22, 2020 · 0 comments

Comments

@kriszkern
Copy link
Contributor

Poco currently has strict option validation with the assistance of the docopt library for each and every command. Docopt handles the parsing of command line arguments and provides help messages in case of wrongly used commands.

It would be great if we could somehow pass any number of arbitrary command line options to the underlying docker-compose command.
Let's take this simple use case: the poco logs command works by calling the docker-compose logs command under the hood, but we cannot pass the switch -f to follow the logs to the poco command, even though the docker-compose command would accept it.
This is a very simple example where this feature would be useful. There are other, more complex poco commands where passing arbitrary options like this is not so straightforward.

The first issue that has to be solved regarding this feature request is that docopt does not allow unknown options to be handled by the program in the current implementation. Identifying and maintaining the list of valid options of docker-compose commands is a huge task, which is not the goal of poco. Poco should not validate these options, let the underlying command do the validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant