Skip to content

--curl doesn't print the curl command in text mode #2

Description

@AJCJ1

With v1.1.0 from npm:

$ urlbox screenshot https://example.com --curl
✓ Equivalent curl command (no API call made)

The summary prints but the curl command itself doesn't. You have to switch to --output-format json to see it.

Quiet mode is also off: it prints {"curl": "curl -X POST ..."} — a JSON object — where other commands' quiet output is a bare scalar (render prints the URL/id, link prints the signed URL).

Expected:

  • text mode: print the curl command under the summary
  • quiet mode: print just the curl string

Same class as the link/doctor text-mode fixes that went into 1.1.0 — --curl was missed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions