feat: add -c/--command option to specify container command#1
Conversation
Allow users to specify the command to execute in the container instead of always using /bin/bash. Supports both CLI flag (-c/--command) and environment variable (ECSSH_COMMAND). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds support for specifying the command executed inside the ECS container via a new CLI option and an environment variable, while keeping /bin/bash as the default.
Changes:
- Extend container connection flow to accept a user-provided command (defaulting to
/bin/bashwhen empty). - Add
-c/--commandCLI parsing andECSSH_COMMANDenvironment variable support. - Update usage/help text and Claude guidance examples to document the new option.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| main.go | Plumbs a command parameter through connection logic, adds -c/--command parsing, reads ECSSH_COMMAND, and updates usage output. |
| CLAUDE.md | Documents examples for -c and ECSSH_COMMAND. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3cbf098 to
0930f80
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0930f80 to
5174c70
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
-c/--commandoption to specify the command to execute inside the containerECSSH_COMMANDenvironment variable/bin/bashwhen not specifiedUsage
Test plan
-c "ls -la"/bin/bashis used by default without-cECSSH_COMMANDenvironment variable works-coption takes priority overECSSH_COMMANDecssh helpshows the-coption🤖 Generated with Claude Code