openwhisk-composer icon indicating copy to clipboard operation
openwhisk-composer copied to clipboard

compose and deploy are two separate commands

Open rabbah opened this issue 5 years ago • 2 comments

compose --deploy in the past allowed one to conveniently lower the composition and deploy it in one command. Now there are two binaries compose and deploy.

what's the rationale for separating them completely (that is, why remove --deploy from compose which could delegate to deploy)?

rabbah avatar Mar 13 '19 12:03 rabbah

Once upon a time, we wanted to separate the part of composer that depends on a connection to an OpenWhisk deployment from the part that does not, hence the split between the two commands. There was also a theory about integration with the OpenWhisk CLI.

I agree that from a user perspective a single command or CLI integration would make more sense. On my long-term todo list...

tardieu avatar Mar 27 '19 17:03 tardieu

ran into this when update travis2slack to composer 0.11.0. Not having a single command makes the scripting slightly more annoying since one has to deal with a tmp file just to get the output from compose as input to deploy.

Another alternative would be to support getting the json input to deploy from stdin. Then something like: compose foo.js | deploy - foo could work.

dgrove-oss avatar Jan 16 '20 16:01 dgrove-oss