Skip to content

Add datasets commands: list, get, create, delete#13

Closed
maragubot wants to merge 3 commits into
mainfrom
issue-4-datasets
Closed

Add datasets commands: list, get, create, delete#13
maragubot wants to merge 3 commits into
mainfrom
issue-4-datasets

Conversation

@maragubot

Copy link
Copy Markdown
Collaborator

Summary

  • Add Dataset types and CRUD API methods to honeycomb package
  • Add datasets list, datasets get, datasets create, datasets delete commands
  • Support --json flag for machine-readable output
  • Table formatting for human-readable output

Test plan

  • List, get, create, delete API methods tested with httptest servers
  • All commands tested for correct output formatting
  • JSON output mode tested
  • go install . works

Closes #4

- Update module path to github.com/maragudk/honeycomb-cli
- Add cobra CLI framework with root command and global flags
- Support --api-key/HONEYCOMB_API_KEY and --api-url/HONEYCOMB_API_URL
- Add version command (set via -ldflags at build time)
- Add basic test for Execute function
- Update README with install and usage instructions

Closes #1
- Create honeycomb package with HTTP client supporting API key auth
- Add error response parsing (RFC 7807 Problem Detail format)
- Implement GET /1/auth endpoint for key verification
- Add `auth` command showing team, environment, and permissions
- Refactor commands to use NewRootCommand() for testability
- Add tests for client, auth API, and auth command

Closes #2
Closes #3
- Add Dataset types and API methods to honeycomb package
- Add datasets subcommands with table and JSON output
- Add newClient helper for creating API clients from flags
- Tests for all API methods and commands

Closes #4
@maragubot
maragubot enabled auto-merge (squash) February 27, 2026 12:39
@maragubot

Copy link
Copy Markdown
Collaborator Author

Changes included in PR #18

@maragubot maragubot closed this Feb 27, 2026
auto-merge was automatically disabled February 27, 2026 12:50

Pull request was closed

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.

Datasets commands: list, get, create, delete

1 participant