Skip to content

feat: add operations list/get/watch commands for account operations#53

Merged
pcfreak30 merged 1 commit into
developfrom
feat/operations-command
May 18, 2026
Merged

feat: add operations list/get/watch commands for account operations#53
pcfreak30 merged 1 commit into
developfrom
feat/operations-command

Conversation

@pcfreak30
Copy link
Copy Markdown
Member

@pcfreak30 pcfreak30 commented May 18, 2026

Add operations command group with list, get, and watch functionality for account operations

This PR introduces a new operations CLI command that allows users to list, inspect, and monitor account-level operations (such as uploads and pins) through the portal API.

New commands:

  • pinner operations list — Lists operations with optional filtering by status, operation type, protocol, CID, and limit. Supports a --watch flag for live-updating display.
  • pinner operations get <id> — Shows detailed information about a specific operation. Supports a --watch flag that polls the operation every 2 seconds until it reaches a terminal status (completed, failed, or error).

Key features:

  • Filter operations by status (pending/running/completed/failed/error), operation type, protocol, and CID
  • Color-coded status output (green for completed, yellow for pending/running, red for failed/error)
  • Watch mode for both list and get commands, with real-time progress updates
  • Operation detail view includes step progress, status messages, and error information
  • Requires authentication via the existing auth service

@kody-ai

This comment has been minimized.

Comment thread pkg/cli/operations.go Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 18, 2026

Code Coverage Report

Total Coverage: 35.2%

Generated from commit: 7b61d35
Repository: LumeWeb/pinner-cli

@pcfreak30 pcfreak30 force-pushed the feat/operations-command branch from 24f1d1a to f5dc325 Compare May 18, 2026 08:20
@kody-ai
Copy link
Copy Markdown

kody-ai Bot commented May 18, 2026

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug
Performance
Security
Business Logic

Access your configuration settings here.

@pcfreak30 pcfreak30 force-pushed the feat/operations-command branch from f5dc325 to 0238c9e Compare May 18, 2026 08:22
@pcfreak30 pcfreak30 merged commit cbd5e48 into develop May 18, 2026
1 check passed
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