update: enhance command execution with real-time logging and add shorthand flag for deployment file

This commit is contained in:
jon brookes 2025-08-16 11:45:47 +01:00
parent 4b8a27a2d7
commit 5f448d7fc7
3 changed files with 90 additions and 8 deletions

View file

@ -35,6 +35,8 @@ func ReadBaseConfig(path string) (BaseConfig, error) {
deploymentType := os.Getenv("DEPLOYMENT_TYPE")
deploymentFile := flag.String("deployment-file", "", "path to config file")
deploymentFileShorthand := flag.String("f", "", "shorthand for -deployment-file")
helpFlag := flag.Bool("help", false, "show help")
flag.Parse()
@ -45,7 +47,9 @@ func ReadBaseConfig(path string) (BaseConfig, error) {
}
var config BaseConfig
if *deploymentFile != "" {
if *deploymentFileShorthand != "" {
config.DeploymentFile = *deploymentFileShorthand
} else if *deploymentFile != "" {
config.DeploymentFile = *deploymentFile
}