Skip to content

Commit e6cca82

Browse files
committed
exec linting commit
1 parent 51cd96b commit e6cca82

File tree

2 files changed

+357
-250
lines changed

2 files changed

+357
-250
lines changed

cmd/exec.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)