You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So while i was implementing an npm build system for my docker-compose project i had this idea of changing existing API for this module (or adding it on top of an existing one) to make this module more OOPeish and to avoid repetion of cwd , log and other parameters.
Would you be interested in something like this?
constDockerCompose=require('docker-compose')// DockerCompose.method will still be a thing (legacy support), but the main course isconstcompose=newDockerCompose({cwd: '.',log: false,config: 'docker-compose.yml'})awaitcompose.build()awaitcompose.up()constcontainer='node'constcommand='npm install'awaitcompose.exec(container,command,{log: true,// will override initial constructor settingsworkdir: './var/www'// cli args for exec and other commands will be also supported})
The text was updated successfully, but these errors were encountered:
maybe i'm missing something but how exactly is this proposal different than what exists? Can you call out the changes and additions so others could see the pros/cons of your proposal?
maybe i'm missing something but how exactly is this proposal different than what exists? Can you call out the changes and additions so others could see the pros/cons of your proposal?
Well, it was created long time ago and API has changed since, no reason to keep this open anylonger
So while i was implementing an npm build system for my docker-compose project i had this idea of changing existing API for this module (or adding it on top of an existing one) to make this module more OOPeish and to avoid repetion of
cwd
,log
and other parameters.Would you be interested in something like this?
The text was updated successfully, but these errors were encountered: