Current behavior
Executing mw stack deploy
- with
--quiet returns success message
- with
-ojson returns error
:~$ STACK_ID=$(mw stack deploy --compose-file="./docker-compose.yml" --quiet)
:~$ echo $STACK_ID
SUCCESS Deployment successful. No services were restarted. No services were deleted.
:~$ mw stack deploy --compose-file="./docker-compose.yml" -ojson
ERROR An error occurred while executing this command: Error: Nonexistent flag: -ojson
Expected behavior
- with
--quiet returns created Stack ID
- with
-ojson returns json-object with stack ID + created container IDs like:
{
"stackid-1234": {
"projectID": "projectid-1234",
"container": [
{
"containerid-1234": {...}
},
...
],
...
}
}
Additional Info
@mittwald/cli/1.15.0 linux-x64 node-v20.20.2
Current behavior
Executing
mw stack deploy--quietreturns success message-ojsonreturns errorExpected behavior
--quietreturns created Stack ID-ojsonreturns json-object with stack ID + created container IDs like:{ "stackid-1234": { "projectID": "projectid-1234", "container": [ { "containerid-1234": {...} }, ... ], ... } }Additional Info
@mittwald/cli/1.15.0 linux-x64 node-v20.20.2