Skip to content

feat(cli): add hosting disk-usage commands - #64

Merged
sanchpet merged 1 commit into
mainfrom
feat/cli-diskusage
Jul 13, 2026
Merged

feat(cli): add hosting disk-usage commands#64
sanchpet merged 1 commit into
mainfrom
feat/cli-diskusage

Conversation

@sanchpet

Copy link
Copy Markdown
Owner

What

Adds sweb hosting disk-usage, surfacing the shared-hosting disk-usage service (SDK github.com/sanchpet/sweb-go-sdk/vh/diskusage, endpoint /vh/utils/diskUsage) under the existing hosting parent. Five subcommands, one per SDK method:

Command SDK method RPC method
disk-usage report DiskUsage.List index
disk-usage tasks DiskUsage.TasksInfo getTasksInfo
disk-usage scan DiskUsage.StartTask startTask
disk-usage email DiskUsage.Email getEmail
disk-usage set-email <email> DiskUsage.ChangeEmail changeEmail

Why

The disk-usage (quota scan) service was in the SDK but unreachable from the CLI. This closes that gap: operators can now read the per-backend quota breakdown, check scan-task state, queue a scan, and read/set the over-quota notification email without dropping to the SDK.

Thin presentation over the SDK — reads render through the shared render() helper (-o table|json), mutations report a one-line result. A tree test reuses the existing findSub/subNames helpers. mise run ci is green (test, lint 0 issues, build).

Surface the shared-hosting disk-usage service (SDK /vh/utils/diskUsage)
under the existing hosting parent as `sweb hosting disk-usage`: report
the per-backend quota breakdown, show scan-task state, queue a scan, and
read/set the over-quota notification email. Thin presentation over the
SDK, rendering through the shared render() helper.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: sanchpet <petrov@sanch.pet>
@sanchpet
sanchpet merged commit 15f2aa6 into main Jul 13, 2026
2 checks passed
@sanchpet
sanchpet deleted the feat/cli-diskusage branch July 13, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant