Skip to content

stack deploy-return not machine readable #1788

@cs-bennwas

Description

@cs-bennwas

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

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions