You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
- Add `MB_SESSION_TOKEN` as an alternative authentication method for users without admin access to mint an API key; mutually exclusive with `MB_API_KEY` (#9)
6
6
- Document changelog update workflow in `AGENTS.md` and add a pull request template prompting contributors to update `CHANGELOG.md` for user-visible changes (#20)
7
+
- Move main package to `cmd/mb-cli` so `go install github.com/andreagrandi/mb-cli/cmd/mb-cli@latest` produces an `mb-cli` binary that matches the documented command name (#10)
Copy file name to clipboardExpand all lines: mb-cli-plan.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ All endpoints used by this CLI. Despite some being POST, they are all **read-onl
62
62
63
63
```
64
64
mb-cli/
65
-
├── cmd/mb/main.go # Entry point
65
+
├── cmd/mb-cli/main.go # Entry point
66
66
├── internal/
67
67
│ ├── cli/ # Cobra commands
68
68
│ │ ├── root.go # Root command, global flags
@@ -139,7 +139,7 @@ Set up Go module, entry point, config loading, root CLI, and version command.
139
139
140
140
**Files to create:**
141
141
-`go.mod` — module `github.com/andreagrandi/mb-cli`, Go 1.25
142
-
-`cmd/mb/main.go` — calls `cli.Execute()` (pattern from sentire `cmd/sentire/main.go`)
142
+
-`cmd/mb-cli/main.go` — calls `cli.Execute()` (pattern from sentire `cmd/sentire/main.go`)
143
143
-`internal/version/version.go` — `var Version = "dev"` (injected via ldflags at build)
144
144
-`internal/config/config.go` — `LoadConfig()` reads `MB_HOST` and `MB_API_KEY` from env vars; returns error if either is missing (pattern from sentire `internal/config/config.go`)
0 commit comments