Skip to content

Commit

Permalink
Add examples to commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Oct 17, 2024
1 parent 3ab0d82 commit 5458c20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cmd/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ import (
var execCmd = &cobra.Command{
Use: "exec",
Short: "Runs a command remotely on a container",
Example: `
aws-vault exec <profile> -- iecs exec -m /bin/bash (recommended)
env AWS_PROFILE=<profile> iecs exec -m /bin/bash
`,
RunE: func(cmd *cobra.Command, args []string) error {
clusterId, err := cmd.Flags().GetString("cluster")
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ var rootCmd = &cobra.Command{
Short: "An interactive CLI for ECS",
Version: "0.1.0",
Example: `
aws-vault exec <profile> -- iecs ... (recommended)
env AWS_PROFILE=<profile> iecs ...
aws-vault exec <profile> -- iecs ... (recommended)
env AWS_PROFILE=<profile> iecs ...
`,
}

Expand Down

0 comments on commit 5458c20

Please sign in to comment.