Skip to content
This repository was archived by the owner on Aug 13, 2026. It is now read-only.
This repository was archived by the owner on Aug 13, 2026. It is now read-only.

Add --format json to execute command #180

Description

@AlephNotation

Feature request

Every other command supports --format json for machine-readable output, but execute does not. Currently, stdout/stderr are printed directly with no structured wrapper, making it difficult to programmatically distinguish command output from CLI errors.

Suggestion

$ vers exec <vm-id> --format json echo hello
{
  "stdout": "hello\n",
  "stderr": "",
  "exit_code": 0
}

Impact

Agents and scripts that parse exec output need to reliably separate stdout, stderr, and exit codes. Today this requires heuristics or checking $? separately.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions