Skip to content

Conversation

@entuziaz
Copy link
Contributor

@entuziaz entuziaz commented Nov 27, 2025

First part of #254 fixes

  • remove process.exit() from runAdd
  • ensure all UI & error handling stays in the business layer
  • ensure command layer handles exit codes only

NB: follows existing rm command pattern #253.

@entuziaz entuziaz mentioned this pull request Nov 27, 2025
6 tasks
@SgtPooki SgtPooki self-requested a review December 1, 2025 18:20
Copy link
Collaborator

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

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

pretty much there, just a small change requested.

await runAdd(addOptions)
} catch (error) {
console.error('Add failed:', error instanceof Error ? error.message : error)
} catch (_error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
} catch (_error) {
} catch {

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.

2 participants