Skip to content

Programmatical Usage #29

Description

@moinologics

it will be good if it have programming usage

Suggestion -

We should have some function like

download(url string, parts int, ...other option from cmd) (event) {}

We should received event like

in case of progress

{
  "status": "progress",
  "parts": [
    {
      "part": 1,
      "total_size": 1500000, // size in bytes
      "downloaded": 1200000, // bytes downloaded
    },
    ....
  ]
}

in case of failure

{
  "status": "error",
  "details": "request failed with status 404"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions