Skip to content

Add runtime configuration support for deploy and get commands#17

Merged
salvador-barboza merged 3 commits intomainfrom
chava/add-read-from-config
Sep 30, 2025
Merged

Add runtime configuration support for deploy and get commands#17
salvador-barboza merged 3 commits intomainfrom
chava/add-read-from-config

Conversation

@salvador-barboza
Copy link
Collaborator

Allows using -c to read app name from config file instead of requiring a --app param

@salvador-barboza salvador-barboza requested a review from a team as a code owner September 30, 2025 17:04
Copilot AI review requested due to automatic review settings September 30, 2025 17:04
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 runtime configuration support for deploy and get commands, allowing users to use -c to read app name from config file instead of requiring a --app parameter. The implementation includes automatic fallback to runtime.config.json in the current directory when neither --app nor --config is specified.

Key changes:

  • Created a new config package with reusable configuration reading functionality
  • Updated deploy and get commands to support -c flag for config file path
  • Added automatic detection of runtime.config.json in current directory

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
internal/config/config.go New config package with RuntimeConfig struct and ReadRuntimeConfig function
cmd/init.go Updated to use the new config package instead of local runtimeConfig struct
cmd/get.go Added config flag support and automatic config file detection
cmd/deploy.go Added config flag support and automatic config file detection
cmd/config.go New file with duplicate config functionality (appears unused)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

jasonrclark
jasonrclark previously approved these changes Sep 30, 2025
Copy link
Member

@jasonrclark jasonrclark left a comment

Choose a reason for hiding this comment

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

Looks good. My Go is not strong, but is there a way to share the logic around the app name/config arg handling so we don't duplicate it between the commands? Feels like as we grow more commands, we'll just end up with more spots that this common behavior will pop up.

justinmcbride
justinmcbride previously approved these changes Sep 30, 2025
@salvador-barboza salvador-barboza merged commit 07dfb5f into main Sep 30, 2025
3 checks passed
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.

3 participants