Skip to content

0.1.0

Choose a tag to compare

@leemour leemour released this 17 Nov 17:46
· 15 commits to main since this release
v0.1.0
81a947c

Added

  • Started from @wirecat/cli-template 0.25.0.
  • Sign in with a Yandex OAuth token pasted once: session start reads it hidden or from stdin, checks it with
    GET /v1/disk and keeps it in the system keyring; session status --check and doctor --online say whose it is.
  • Chosen Disk folders as searchable text: folders add <path>, sync, status, documents list|show|export,
    search, catalog, tags, notes and memories, cli-core's shared documents commands. Each sync walks the chosen
    folders again (the Disk API has no change feed) and reads only files whose MD5 changed; a moved file keeps its id,
    tags and notes. Text from PDF, docx, xlsx, CSV, TSV, text and Markdown. Times are kept and answered in UTC.
  • The files live: files list|show|download|upload|copy|move|create|delete|restore|publish|unpublish, by Disk
    path. files delete moves to the trash. --replace and files delete ask as files.delete does, files publish
    as files.share does, and --dry-run shows each key the write checks. files publish answers the public link, or
    leaves public_url out when it cannot read it back. Downloads and uploads go to the address Yandex gives, without
    the token.
  • api: one command per operation of Yandex's Swagger 1.2 description, 20 in all. The three that answer a
    download or upload link are left out, and a resource's file, preview and sizes links are taken out of every
    answer. --all pages where the API pages. A permanent delete, overwrite=true and a public link ask by
    files.delete and files.share. An operation that does what a files command does also checks that command's
    key: files.move: deny stops api resources-move too, in the run and in --dry-run.