Skip to content

feat!: restructure CLI to ddog with domain-first commands and fix release workflow - #4

Merged
tmcinerney merged 2 commits into
mainfrom
tmcinerney/update_release_please
Dec 17, 2025
Merged

feat!: restructure CLI to ddog with domain-first commands and fix release workflow#4
tmcinerney merged 2 commits into
mainfrom
tmcinerney/update_release_please

Conversation

@tmcinerney

Copy link
Copy Markdown
Owner

Summary

This PR restructures the CLI from dd-search to ddog with a domain-first command pattern and fixes the release-please workflow to properly trigger CI checks on automated PRs.

Breaking Changes

Command structure has changed to domain-first pattern. All commands now require both a domain and action verb:

  • dd-search logs "<query>"ddog logs search "<query>"
  • dd-search spans "<query>"ddog spans search "<query>"
  • dd-search metrics "<query>"ddog metrics query "<query>"
  • dd-search list-metricsddog metrics list

Changes

Features

  • CLI Restructuring: Migrated from flat command structure to domain-first organization
    • Commands grouped by domain (logs, spans, metrics)
    • Split monolithic cli.rs into modular structure (cli/{args,logs,metrics,shared,spans}.rs)
    • Reorganized commands directory to match domain structure
  • Renamed Binary: Changed from dd-search to ddog throughout codebase

Bug Fixes

  • Added missing logs module files that were ignored by global gitignore
  • CI Workflow: Configured release-please to use RELEASE_PLEASE_TOKEN instead of GITHUB_TOKEN to properly trigger CI checks on automated release PRs

Documentation

  • Updated README with new command syntax and examples
  • Updated CHANGELOG with repository URL changes (dd-search → ddog)
  • Updated all references in workflow files and pre-commit hooks

Impact

  • 25 files changed: 340 additions, 246 deletions
  • Major restructuring of CLI module architecture
  • All command invocations require updating to new syntax
  • Release artifacts renamed from dd-search-* to ddog-*

Testing

  • All integration tests updated to use new command structure
  • Pre-commit hooks (fmt, clippy) passing
  • Maintains backward compatibility in query syntax and API interactions

tmcinerney and others added 2 commits December 17, 2025 11:59
Configures release-please to use RELEASE_PLEASE_TOKEN instead of the
default GITHUB_TOKEN. This allows PRs created by release-please to
trigger CI workflows, which was previously blocked by GitHub's security
policy that prevents GITHUB_TOKEN from triggering workflows on
bot-created PRs.
@tmcinerney
tmcinerney merged commit 011c30a into main Dec 17, 2025
3 checks passed
@tmcinerney
tmcinerney deleted the tmcinerney/update_release_please branch December 17, 2025 20:07
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