wasmCloud / wash

WAsmcloud SHell - the comprehensive command-line tool for wasmCloud development

Home Page:https://wasmcloud.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] Add a `--deploy` flag to `wash app put`

thomastaylor312 opened this issue · comments

Is your feature request related to a problem? Please describe.

Often times you just want to put and deploy a manifest all at the same time, particularly when testing or kicking the tires with wasm cloud.

Describe the solution you'd like

We should add a --deploy flag to the wash app put command so we can deploy. The behavior would look something like this:

$ wash app put --deploy manifest.yaml
Manifest published!
Manifest deployed!

I like this. What do you think about wash app put --deploy manifest.yaml vs wash app deploy --manifest manifest.yaml?

I.e. 1) is deploy while putting, whereas 2) is deploy from a manifest (implicitly put)

Right now you can do wash app deploy ./manifest.yaml 🤔

That was definitely unclear from the help text:

wash app deploy -h
Deploy an app (start a deployment monitor)

Usage: wash app deploy [OPTIONS] <name> [version]

Arguments:
  <name>     Name of the app specification to deploy
  [version]  Version of the app specification to deploy, defaults to the latest created version

I'll close this and open a new issue to fix that

Open #626 to handle it