File tree Expand file tree Collapse file tree 2 files changed +357
-250
lines changed
Expand file tree Collapse file tree 2 files changed +357
-250
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ var execCmd = &cobra.Command{
2929 // Join the commandArgs to form a single command string
3030 commandString := strings .Join (commandArgs , " " )
3131
32- err := lib .ExecFargate (
33- viper .GetString ("profile" ),
34- viper .GetString ("cluster" ),
35- commandString , // Pass the combined command string
36- viper . GetString ( "task_id" ), // Optional: will auto-extract task definition
37- viper .GetString ("task_definition" ), // Optional: for extracting entrypoint
38- viper .GetString ("container_name" ), // Optional: for extracting entrypoint
39- )
32+ err := lib .ExecFargate (lib. ExecConfig {
33+ Profile : viper .GetString ("profile" ),
34+ Cluster : viper .GetString ("cluster" ),
35+ Command : commandString ,
36+ TaskID : viper . GetString ( "task_id" ),
37+ TaskDefinitionName : viper .GetString ("task_definition" ),
38+ ContainerName : viper .GetString ("container_name" ),
39+ } )
4040 if err != nil {
4141 log .WithError (err ).Error ("Can't execute command in Fargate mode" )
4242 os .Exit (1 )
You can’t perform that action at this time.
0 commit comments