This patch implements as decided..
To set a bucket policy.
```
mc access readonly s3/<bucket>
mc access readwrite s3/<bucket>
mc access writeonly s3/<bucket>
mc access none s3/<bucket>
```
To get a bucket policy.
```
mc access s3/<bucket>
```
Outputs for recursive today
```
$ mc ls -r /tmp/value/
[2016-01-25 12:27:01 PST] 52B test.go
[2016-01-26 11:36:22 PST] 4.2KiB test.txt
[2016-01-26 11:45:22 PST] 102B test/
[2016-01-26 11:45:22 PST] 4.2KiB test/README.md
```
and Outputs for non recursive today differ lexically.
```
$ mc ls /tmp/value/
[2016-01-26 11:45:22 PST] 102B test/
[2016-01-25 12:27:01 PST] 52B test.go
[2016-01-26 11:36:22 PST] 4.2KiB test.txt
```
To fix this issue we need to capture the ending '/' as
well part of the names while sorting the output. This
patch addresses this problem.
- Always set globals from context before validating input arguments.
- Add missing os.Exit(1) from console.Fatal{f,ln} which was
accidentally removed from previous commits.
Fixes#1472
- alias now expands for all match aliases and also any matching hosts.
Example:- mc ls -r s3.amazonaws.com/ferenginar/bin
- not globs, no hosts - only fully qualified URLs are stored in config.
- everywhere use 'args2URLs()' getAliasURL should be used internally.
Each command implements and interprets the following coloring styles
- ``dark`` - default coloring style picks up palette colors Cyan, Red, Blue, White etc
- ``light`` - lighter chooses white colored console printing.
- ``nocolor`` - nocolor is for console printing without any colors.
All coloring internally use ASCII color schemes, portable across all known OS.
- String() for colorized output
- JSON() for json marshalled output
All messages should adhere to this interface unless its
explicitly not necessary in some cases.
This reverts commit 68b3b0aac2.
Revert "Object ACL now propagates through ACL config, update minio-go library to bing in SetObjectACL() support"
This reverts commit 6816542c7a.
- add checkUpdateSyntax and also add json output for update messages
- additionally this commit also includes error Container for consistent outputs
in case of errors, very handy to write scripts around
```bash
$ mc --json ls test | jq .error
null
null
{ error }
null
...
```