Skip to content

Conversation

@tab
Copy link
Owner

@tab tab commented Nov 16, 2025

Added init to generate configuration file with options for profile, service, force, and dry-run

Added init to generate configuration file with options for profile, service, force, and dry-run
@tab tab requested a review from Copilot November 16, 2025 17:08
@tab tab self-assigned this Nov 16, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds an init command to generate a fuku.yaml configuration file from a template. Users can customize the generated file with options for profile name, service name, and control generation behavior with force and dry-run flags.

Key Changes:

  • Added generator package with template-based configuration file generation
  • Integrated init command into CLI with support for --profile, --service, --force, and --dry-run flags
  • Included comprehensive test coverage for generator functionality

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/app/module.go Registers the generator module in the dependency injection container
internal/app/generator/templates/fuku.yaml.tmpl Template for generating fuku.yaml with customizable service and profile names
internal/app/generator/module.go Defines the generator module for dependency injection
internal/app/generator/generator_test.go Comprehensive test suite covering generation scenarios including defaults, custom options, file existence, force overwrite, and dry-run mode
internal/app/generator/generator_mock.go Generated mock implementation for testing
internal/app/generator/generator.go Core generator implementation with template parsing and file writing logic
internal/app/cli/cli_test.go Updated CLI tests to include generator dependency
internal/app/cli/cli.go Added init command handler and integrated generator into CLI workflow

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants