Skip to content

[DevBounty] Fix: issues in command#4

Open
Saumya-Verma123 wants to merge 1 commit into
KDM-cli:mainfrom
Saumya-Verma123:devbounty-fix-1778430508
Open

[DevBounty] Fix: issues in command#4
Saumya-Verma123 wants to merge 1 commit into
KDM-cli:mainfrom
Saumya-Verma123:devbounty-fix-1778430508

Conversation

@Saumya-Verma123
Copy link
Copy Markdown

Autonomous fix by DevBounty AI Agent.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to harden the show command by adding try/catch error handling around command execution and the underlying “show *” helpers (containers/pods/runners/minikube).

Changes:

  • Wrapped show subcommand dispatch in a try/catch to log failures.
  • Added try/catch blocks in showContainers, showPods, showRunners, and showMinikube to stop spinners and log errors on failure.
  • (Regression) Introduced non-TypeScript content at the top of show.ts (Markdown/code fence), which will break compilation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/commands/show.ts
Comment on lines +1 to +5
# [DevBounty AI]: File optimized for resolution.



```javascript
Comment thread src/commands/show.ts
Comment on lines +32 to 34
} catch (error) {
logger.error(`An error occurred: ${error.message}`);
}
Comment thread src/commands/show.ts
Comment on lines +59 to +62
} catch (error) {
spinner.stop();
logger.error(`Failed to fetch Docker containers: ${error.message}`);
}
Comment thread src/commands/show.ts
Comment on lines +86 to +89
} catch (error) {
spinner.stop();
logger.error(`Failed to fetch Kubernetes pods: ${error.message}`);
}
Comment thread src/commands/show.ts
Comment on lines +125 to +128
} catch (error) {
spinner.stop();
logger.error(`Failed to fetch runners: ${error.message}`);
}
Comment thread src/commands/show.ts
Comment on lines +159 to +162
} catch (error) {
spinner.stop();
logger.error(`Failed to fetch Minikube status: ${error.message}`);
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is current issue on latest version this will cause same error refer #5

@utkarsh232005 utkarsh232005 self-requested a review May 10, 2026 20:33
Comment thread src/commands/show.ts



```javascript
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this will break the typescript import and fall into errors while building

Comment thread src/commands/show.ts
Comment on lines +159 to +162
} catch (error) {
spinner.stop();
logger.error(`Failed to fetch Minikube status: ${error.message}`);
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is current issue on latest version this will cause same error refer #5

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.

3 participants