Go + S3 = g3. g3 is CLI for dealing with S3.
Now it has been implemented only get command. Also it will implement at any time other command.
$ g3 get <bucketname> <target file or directory>
If you want to download the 'test.txt' files from the 'test' directory, you can be achieved with the following command:
g3 get <bucketname> test/test.txt
To install, use go get
:
$ go get -d github.com/MacoTasu/g3
$ go build
$ go install
$ aws configure
$ > AWS_ACCESS_KEY_ID
$ > AWS_SECRET_KEY
- Fork (https://github.com/MacoTasu/g3/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes - Run
gofmt -s
- Create a new Pull Request