feat!: restructure CLI from dd-search to ddog with domain-first commands - #2
Merged
Merged
Conversation
- Rename binary from dd-search to ddog - Restructure commands to use domain/action pattern (GitHub-style) - dd-search logs → ddog logs search - dd-search spans → ddog spans search - dd-search metrics → ddog metrics query - dd-search list-metrics → ddog metrics list - Create shared CLI components (TimeRange, Pagination) for DRY code - Organize commands into domain subdirectories - Update all documentation, workflows, and imports BREAKING CHANGE: Command structure has changed to domain-first pattern. All commands now require both a domain and action verb.
Update all commit reference URLs in CHANGELOG.md to reflect the repository rename from dd-search to ddog.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restructures the CLI from a flat command structure to a strict domain-first pattern (GitHub-style) and renames the binary from
dd-searchtoddog. This provides better organization and scalability for future features.Changes
Breaking Changes
dd-search logs→ddog logs searchdd-search spans→ddog spans searchdd-search metrics→ddog metrics querydd-search list-metrics→ddog metrics listdd-searchtoddogFeatures
TimeRange,Pagination) for DRY code reusesrc/cli/args.rs- Main CLI and domain enumsrc/cli/shared.rs- Reusable argument structuressrc/cli/logs.rs,spans.rs,metrics.rs- Domain-specific actionsImpact
Testing