Commit Graph
24 Commits
Author SHA1 Message Date
Anand Babu (AB) Periasamy 8fc138f3a0 organize global flags after cmd flag 2015-11-24 16:59:46 -08:00
Harshavardhana fd1cde749a mc: Fix setGlobalContext across all commands.
- 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
2015-11-22 00:33:35 -08:00
Anand Babu (AB) Periasamy 558c20e1e3 set globals from context from each command main 2015-11-21 18:26:58 -08:00
Anand Babu (AB) Periasamy 269ac7b105 global flags are replaced with command speific flags, but still retain global behavior 2015-11-21 14:20:00 -08:00
Harshavardhana d5dd4fb5bd json: JSON messages now have proper status field for all messages
Fixes - #1369
2015-11-18 00:24:32 -08:00
Harshavardhana cbb937139e docs: Changes necessary for comprehensive doc changes
Fixes #1385, #1384, #1381, #1367, #1363
2015-11-17 09:14:57 -08:00
Harshavardhana 7831917901 help: Re-write help style now each command has --help 2015-11-16 02:21:44 -08:00
Anand Babu (AB) Periasamy 16faf7ed3e version command rewrite 2015-11-14 23:48:29 -08:00
Anand Babu (AB) Periasamy dfbd6e6567 new help command 2015-11-14 23:37:00 -08:00
Anand Babu (AB) Periasamy 970927cc6b simplify setting console theme 2015-11-10 16:45:32 -08:00
Harshavardhana 123e44d8c5 build: Populate mcVersion through ldflags
By default binary built through 'go get github.com/minio/mc'. Will be
considered UNOFFICIAL.GOGET with not versioning, 'go get' binaries
cannot use 'mc update' functionality.

First reasoning towards this is - go build tools have no way to specifying
versions and releases unlike `npm`. For this reason alone we have to
differentiate OFFICIAL and UNOFFICIAL.

Now a 'make' will build appropriate binaries, while 'go get' becomes UNOFFICIAL.
2015-11-02 12:42:17 -08:00
Harshavardhana f85e8827e1 Migrate mc package to minio-xl from minio/minio repo for probe/quick 2015-10-17 00:24:14 -07:00
Harshavardhana 6d95872ad8 Add new --colors option for choosing different coloring styles for console printing
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.
2015-10-07 17:08:42 -07:00
Harshavardhana dbe53325b0 Add SetCustomPalette rather than theme 2015-10-07 12:54:35 -07:00
Harshavardhana 6295a1910e Fix mcVersion and keep it in http.TimeFormat by default 2015-09-22 14:34:53 -07:00
Harshavardhana aaec806897 Simplify help messages 2015-09-01 14:54:13 -07:00
Harshavardhana cbc9d96d50 Format help for all commands 2015-08-25 20:13:50 -07:00
Harshavardhana c48a98de62 Add proper comments. 2015-08-25 16:54:55 -07:00
Anand Babu (AB) Periasamy 40ff9f1033 re-vendorize probe and simplfy typed errors 2015-08-24 04:09:18 -07:00
Harshavardhana f089dc1b68 End sentences with a . for readability 2015-08-23 01:35:32 -07:00
Anand Babu (AB) Periasamy 1c313ef773 final update and tiny fixes 2015-08-22 22:31:15 -07:00
Harshavardhana a0e66ce640 Migrate to golang1.5 with new GO15VENDOREXPERIMENT enabled 2015-08-22 19:04:17 -07:00
Harshavardhana 60a29bae96 Remove json indent for easing parsing
Indentation while it is nice, leads to issues when parsing where delimiters on
readline() will fail since we are sending many self contained json's in a streaming
fashion, having a proper readline() based delimiter is helpful in terms of parsing.
2015-08-19 02:38:09 -07:00
Harshavardhana 192518d679 Add new version command 2015-08-13 20:50:32 -07:00