Skip to content

ya-obs-cli-v0.1.2

Latest

Choose a tag to compare

@xuopoj xuopoj released this 23 Oct 09:26
· 1 commit to main since this release

Added

  • ya-obs init subcommand scaffolds a starter config at
    ~/.config/ya-obs/config.toml (or --path); refuses to overwrite without
    --force; sets file mode to 0600 on Unix.
  • --insecure CLI flag (and insecure = true config key) disables TLS
    certificate verification for endpoints with private CAs. Prints a stderr
    warning when active. Library: ClientConfig::with_tls_verify_disabled(true).
  • Client::list_buckets() — GET / returning Vec<ListedBucket>. CLI ya-obs ls
    with no URI now lists all buckets in the account; ya-obs ls obs://bucket
    continues to list objects. New XML test vector at
    test-vectors/xml/list_buckets_response.json.

Added

  • JSON output, typed exit codes, stat, --quiet, rm --dry-run, and stdin/stdout copy support.
  • Recursive directory copy, directory-style listing with delimiters, and shell completion for Bash and Zsh.

Fixed

  • OBS V2 signing for custom endpoints, dotted bucket names, and service-root requests.
  • Default config path consistently uses ~/.config/ya-obs/config.toml, including on macOS.
  • SigV4 canonical URI encoding for non-ASCII keys and query encoding for slashes.
  • Empty error bodies are classified by HTTP status code.