feat: add interactive mode with enhanced UX and development tooling#11
Open
novemberde wants to merge 3 commits intodaangn:mainfrom
Open
feat: add interactive mode with enhanced UX and development tooling#11novemberde wants to merge 3 commits intodaangn:mainfrom
novemberde wants to merge 3 commits intodaangn:mainfrom
Conversation
Major improvements to user experience and developer workflow: ## Interactive UI Enhancements - Replace archived survey library with promptui for all prompts - Add enhanced Input function with default value hints and validation - Implement improved Select with arrow key navigation and help text - Create feature-rich MultiSelect with: - Visual checkboxes (✓/○) - Multi-selection support (1,3,5) - Special commands (all/none) - Real-time selection counter - Add validation helpers: InputWithValidation, InputInt, InputRequired - Simplify Summary display for better readability ## Code Organization - Refactor UI package into focused modules: - pkg/prompt: User input functions - pkg/display: Output formatting and styling - pkg/awsutil: AWS utility functions (table listing/selection) - Move CLI logic from pkg/db to cmd package for better separation - Add TableBillingConfig to support interactive table creation ## Interactive Mode Features - Add table listing and selection in interactive mode for all commands - Implement billing mode selection (ON_DEMAND/PROVISIONED) with validation - Add RCU/WCU input with automatic range validation - Enable graceful fallback to manual input if AWS connection fails ## Development Environment - Add Makefile with comprehensive targets: - make setup: Install dependencies (golangci-lint, etc.) - make lint: Run go fmt, go vet, and golangci-lint - make test/test-integration: Run unit and integration tests - make dynamo-start/stop/clean: Manage DynamoDB Local - Add .golangci.yml with 30+ linters enabled - Fix DynamoDB Local compatibility (alphanumeric-only credentials) - Add proper endpoint resolver with SigningRegion ## Testing - Add comprehensive test coverage for new packages - Create integration tests for copy, dump, and db operations - Add display output capture tests - Include function signature validation tests ## Bug Fixes - Fix nil pointer dereference in BillingModeSummary - Fix copy command to handle both billing modes correctly - Ensure proper error handling and validation throughout 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Reduced verbose sections to focus on essential information - Condensed installation, usage, and configuration examples - Removed redundant explanations and repetitive content - Simplified Authors and Contributing sections - Added Development section with Makefile commands 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
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
Adds comprehensive interactive mode support with enhanced CLI UX,
improved code architecture, and complete development tooling setup.
Key Features
Interactive Mode
new tables
Enhanced UX
Code Architecture
prompt,display,awsutilDevelopment Tooling
make setup- Install dependencies (golangci-lint, etc.)make lint- Run 30+ linters (gofmt, govet, golangci-lint)make test- Run all tests including integration testsmake build- Build binary.golangci.ymlconfigurationChanges
Testing
Breaking Changes
None - all changes are backward compatible. Existing CLI arguments and
config files continue to work.
This PR tells the story of what was accomplished without being overly
verbose, highlights the key improvements, and makes it clear that there
are no breaking changes.