diff --git a/README.md b/README.md index f18f32e..d802ba3 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ If any of the required information is not provided through environment variables - `--cluster value`: Specifies the ECS cluster name. Default is `$ECSEXEC_CLUSTER`. - `--service value`: Specifies the ECS service name. Default is `$ECSEXEC_SERVICE`. - `--container value`: Specifies the container name. Default is `$ECSEXEC_CONTAINER`. -- `--command value`: Specifies the login shell. Default is /bin/sh, and it can be overridden by `$ESCEXEC_COMMAND`. +- `--command value`: Specifies the login shell. Default is /bin/sh, and it can be overridden by `$ECSEXEC_COMMAND`. - `--help, -h`: Displays the help message. ## Examples @@ -67,7 +67,7 @@ You can customize the behavior of the ecsexec command using environment variable - `ECSEXEC_CLUSTER`: ECS cluster name - `ECSEXEC_SERVICE`: ECS service name - `ECSEXEC_CONTAINER`: Container name -- `ESCEXEC_COMMAND`: Login shell +- `ECSEXEC_COMMAND`: Login shell ## License This project is licensed under the [MIT License](https://github.com/Taiki130/ecsexec?tab=MIT-1-ov-file#readme). See the LICENSE file for details. diff --git a/pkg/cli/app.go b/pkg/cli/app.go index ed3d4af..446f89b 100644 --- a/pkg/cli/app.go +++ b/pkg/cli/app.go @@ -45,7 +45,7 @@ func (runner *Runner) Run(ctx context.Context, args ...string) error { &cli.StringFlag{ Name: "command, cmd", Usage: "login shell. default: /bin/sh", - EnvVars: []string{"ESCEXEC_COMMAND"}, + EnvVars: []string{"ECSEXEC_COMMAND"}, }, }, }