Skip to content

Commit

Permalink
fixup! Add status command
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesroutley committed May 10, 2017
1 parent f024a5a commit 3a39e4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cmd/root.go
Expand Up @@ -53,10 +53,10 @@ AWS_REGION.`,
}

var statusCmd = &cobra.Command{
Use: "status",
Use: "status",
Short: "Show current settings",
Long: `status shows current AWS profile, region and output format`,
Run: status,
Long: `status shows current AWS profile, region and output format`,
Run: status,
}

var useCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/status.go
Expand Up @@ -10,8 +10,8 @@ import (
func status(cmd *cobra.Command, args []string) {
items := []string{"Profile", "Region", "Output Format"}
values := map[string]string{
"Profile": os.Getenv("AWS_PROFILE"),
"Region": os.Getenv("AWS_DEFAULT_REGION"),
"Profile": os.Getenv("AWS_PROFILE"),
"Region": os.Getenv("AWS_DEFAULT_REGION"),
"Output Format": os.Getenv("AWS_DEFAULT_OUTPUT"),
}
for _, item := range items {
Expand Down

0 comments on commit 3a39e4a

Please sign in to comment.