Skip to content

feat: add CLI boilerplate with Cobra/Viper - #1

Merged
jmgilman merged 2 commits into
masterfrom
feat/cli-boilerplate
Jan 21, 2026
Merged

jmgilman merged 2 commits into
masterfrom
feat/cli-boilerplate

Conversation

@jmgilman

Copy link
Copy Markdown
Contributor

Summary

  • Initialize the blob CLI with Cobra/Viper following best practices
  • Add all commands documented in DESIGN.md with proper flags and help text
  • Commands with subcommands are organized in their own packages
  • No implementation logic yet - just boilerplate structure

Commands Added

Core commands: push, pull, cp, cat, ls, inspect, tree, sign, verify, tag

Subcommand groups:

  • cache (status, clear, path)
  • alias (list, set, remove)
  • config (show, path, edit)

Project Structure

blob-cli/
├── main.go
├── cmd/
│   ├── root.go          # Root command + global flags + Viper init
│   ├── push.go, pull.go, cp.go, cat.go, ls.go
│   ├── inspect.go, tree.go, sign.go, verify.go, tag.go
│   ├── cache/           # cache subcommands
│   ├── alias/           # alias subcommands
│   └── config/          # config subcommands

Test plan

  • go build -o blob . succeeds
  • ./blob --help shows all commands
  • ./blob push --help shows push-specific flags
  • ./blob cache --help shows subcommands
  • ./blob alias --help shows subcommands
  • ./blob config --help shows subcommands

🤖 Generated with Claude Code

jmgilman and others added 2 commits January 21, 2026 15:16
Initialize the blob CLI with all commands documented in DESIGN.md:

Core commands:
- push, pull, cp, cat, ls, inspect, tree, sign, verify, tag

Subcommand groups:
- cache (status, clear, path)
- alias (list, set, remove)
- config (show, path, edit)

Uses Cobra for command structure and Viper for configuration
with XDG-compliant paths. All commands have proper flags and
documentation but no implementation logic yet.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add .golangci.yml with comprehensive linter configuration
- Add justfile for running fmt, vet, lint, test, build
- Add GitHub Actions CI workflow for validation on PRs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jmgilman
jmgilman merged commit 1e2b11f into master Jan 21, 2026
2 checks passed
@jmgilman
jmgilman deleted the feat/cli-boilerplate branch January 21, 2026 23:23
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