diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..b0dc594d --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,30 @@ +### Setup your mc Github Repository +Fork [mc upstream](https://github.com/minio-io/mc/fork) source repository to your own personal repository. +```sh +$ git clone https://github.com/$USER_ID/mc +$ cd mc +$ mkdir -p ${GOPATH}/src/github.com/minio-io +$ ln -s ${PWD} $GOPATH/src/github.com/minio-io/ +$ make +``` + +### Developer Guidelines +``mc`` community welcomes your contribution. To make the process as seamless as possible, we ask for the following: +* Go ahead and fork the project and make your changes. We encourage pull requests to discuss code changes. + - Fork it + - Create your feature branch (git checkout -b my-new-feature) + - Commit your changes (git commit -am 'Add some feature') + - Push to the branch (git push origin my-new-feature) + - Create new Pull Request +* If you have additional dependencies for ``mc``, ``mc`` manages its depedencies using [godep](https://github.com/tools/godep) + - Run `go get foo/bar` + - Edit your code to import foo/bar + - Run `make save` from top-level directory (or `godep restore && godep save ./...`). +* When you're ready to create a pull request, be sure to: + - Have test cases for the new code. If you have questions about how to do it, please ask in your pull request. + - Run `go fmt` + - Squash your commits into a single commit. `git rebase -i`. It's okay to force update your pull request. + - Make sure `go test -race ./...` and `go build` completes. +* Read [Effective Go](https://github.com/golang/go/wiki/CodeReviewComments) article from Golang project + - `mc` project is strictly conformant with Golang style + - if you happen to observe offending code, please feel free to send a pull request diff --git a/README.md b/README.md index 000617af..02b78893 100644 --- a/README.md +++ b/README.md @@ -28,4 +28,8 @@ COMMANDS: GLOBAL OPTIONS: --help, -h show help --version, -v print the version -``` \ No newline at end of file +``` + +# Contribute + +[Contribute to mc](./CONTRIBUTING.md) diff --git a/main.go b/main.go index b65ca0ff..16f97aad 100644 --- a/main.go +++ b/main.go @@ -25,9 +25,9 @@ import ( func main() { app := cli.NewApp() app.Name = "mc" - app.Usage = "unified command line interface for Minio Object Storage" - app.Version = "0.0.1" + app.Usage = "Unified command line interface for Minio Object Storage" + app.Version = "0.1.0" app.Commands = Options - app.Author = "Minio" + app.Author = "Minio Community" app.Run(os.Args) }