This repository has been archived by the owner on Mar 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95c32a7
commit 3712e33
Showing
6 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Package ec2 implements AWS EC2 related operations. | ||
package ec2 | ||
|
||
import ( | ||
"github.com/spf13/cobra" | ||
|
||
"github.com/bharath-srinivas/aws-go/cmd/aws-go/command" | ||
) | ||
|
||
// ec2 command. | ||
var ec2Cmd = &cobra.Command{ | ||
Use: "ec2", | ||
Short: "Perform AWS EC2 specific operations", | ||
Long: `List, start or stop AWS EC2 instances`, | ||
Example: ` aws-go ec2 list | ||
aws-go ec2 start i-0a12b345c678de | ||
aws-go ec2 stop i-0a12b345c678de`, | ||
Args: cobra.NoArgs, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
cmd.Usage() | ||
}, | ||
} | ||
|
||
func init() { | ||
command.AddCommand(ec2Cmd) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters