You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.