fix: complete Flags migration and remove deprecated#760
fix: complete Flags migration and remove deprecated#760jrschumacher wants to merge 2 commits intoopentdf:mainfrom
Conversation
…onfig cmd - Replace all 20 remaining `.FlagHelper` usages with `.Flags` across 6 files, completing the migration started in d6932f3 - Remove the `FlagHelper` field alias from `Cli` struct - Remove deprecated `config` command and docs (functionality migrated to `profile` in PR opentdf#719) - Add `docs/ARCHITECTURE.md` documenting current and intended architecture with alignment assessment Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update doc to reflect the actual codebase state: FlagHelper alias is removed, config command is deleted, alignment table is current. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary of ChangesHello @jrschumacher, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly refactors the codebase by finalizing the migration to a unified flag access mechanism, which involved removing a deprecated helper and simplifying the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request is a solid refactoring effort that successfully completes the migration from .FlagHelper to .Flags and removes the deprecated config command. The changes are clean, consistent, and improve the overall health of the codebase. The addition of the ARCHITECTURE.md file is particularly valuable, providing a comprehensive overview of the project's design. I've included one minor suggestion to correct a typo in this new documentation file. Overall, great work on this cleanup and documentation effort.
| otdfctl is a Go CLI application built on [Cobra](https://cobra.dev/) that provides CRUD operations for the OpenTDF Platform's policy objects, TDF encrypt/decrypt, and profile-based configuration. It communicates with the platform via gRPC through the `opentdf/platform/sdk`. | ||
|
|
||
| **Module**: `github.com/opentdf/otdfctl` | ||
| **Go version**: 1.25.0 |
.FlagHelperusages with.Flagsacross 6 files, completing the migration started in d6932f3FlagHelperfield alias fromClistructconfigcommand and docs (functionality migrated toprofilein PR feat(core)!: Store output format to profile. #719)docs/ARCHITECTURE.mddocumenting current and intended architecture with alignment assessmentCo-Authored-By: Claude Opus 4.6 noreply@anthropic.com