Skip to content

Implement attachment subcommands (list, upload, download) #9

Description

@willkg

Expose standalone attachment management, complementing the automatic attachment sync that happens during update/create.

Subcommands:

  • attachment list <page> — list a page's attachments (name, size, version, comment).
  • attachment upload <page> <file>... — upload/replace attachments (reuse the SHA-256-in-comment skip/update logic in client.SyncAttachments).
  • attachment download <page> [name] — download one or all attachments to a directory.

The v1 attachment endpoints are already wrapped in internal/client (ListAttachments, uploadAttachment); download needs a new client method. Mirrors pchuri/confluence-cli's attachment commands.

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