Skip to content

Commit e3b03fc

Browse files
committed
fix: address coderabbitai review feedback on PR #127
- Add cobra.NoArgs to env list command to reject accidental extra args - Add package doc comments to health, db, metrics, and cli packages https://claude.ai/code/session_01Kt2cz2tqC28r9b6bM1c7LE
1 parent e37f3fc commit e3b03fc

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

packages/engine/internal/api/health/health.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package health provides HTTP health-check endpoints for the Mantle API server.
12
package health
23

34
import (

packages/engine/internal/cli/credentials.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package cli implements the Mantle command-line interface.
12
package cli
23

34
import (

packages/engine/internal/cli/env.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func newEnvListCommand() *cobra.Command {
7676
return &cobra.Command{
7777
Use: "list",
7878
Short: "List all environments",
79+
Args: cobra.NoArgs,
7980
RunE: func(cmd *cobra.Command, args []string) error {
8081
store, cleanup, err := newEnvStore(cmd)
8182
if err != nil {

packages/engine/internal/db/db.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package db provides Postgres connection management and query helpers.
12
package db
23

34
import (

packages/engine/internal/metrics/metrics.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package metrics defines Prometheus metrics for the Mantle server.
12
package metrics
23

34
import (

0 commit comments

Comments
 (0)