Skip to content

Commit

Permalink
Merge pull request #1 from simeji/dev
Browse files Browse the repository at this point in the history
Merege Dev branch
  • Loading branch information
simeji committed May 10, 2015
2 parents d9fc58a + 38c7cca commit 4f19e1b
Show file tree
Hide file tree
Showing 7 changed files with 496 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Godeps/Readme
Godeps/_workspace
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## 0.1.0 (2014-08-18)

Initial release

### Added

- Add Fundamental features

### Deprecated

- Nothing

### Removed

- Nothing

### Fixed

- Nothing
52 changes: 52 additions & 0 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,41 @@
# aws-utilities-go
aws utilities written by go

## Instance Operations

start, stop, and show status, your ec2 instances.

### Command Options

`--nametag`, `-n` [*required]

"Name" tag to search instances.
you can use "*"

`--mode`, `-m` [*required]

start or stop or status

### Example

command

```
$ aws-utilities -p my_main_profile op -n *test -m status
```

outputs

(Nametag PrivateIP PublicIP InstanceID InstanceState)

```
simeji-test 172.30.0.200 54.xxx.xxx.201 i-xxxaaaa1 running
simeji-test2 172.30.0.201 i-xxxbbbb2 stopped
```

## Global Options

`--profile`, `-p`

your profile. default: "default"

23 changes: 23 additions & 0 deletions aws-utilities.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package main

import (
"github.com/codegangsta/cli"
"os"
)

func main() {
app := cli.NewApp()
app.Name = "aws-utilities"
app.Version = Version
app.Usage = ""
app.Author = "simeji"
app.Email = "[email protected]"
app.Commands = Commands
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "profile, p",
Usage: "aws profile [default: 'default']",
},
}
app.Run(os.Args)
}
Loading

0 comments on commit 4f19e1b

Please sign in to comment.