Commit Graph
63 Commits
Author SHA1 Message Date
Anand Babu (AB) Periasamy 0bd1edfd8f new alias style and numerous cleanups. 2015-12-28 15:31:52 -08:00
Harshavardhana 8686fe725f session: mc session resume <session-id>
Fixes #1545
2015-12-11 18:25:16 -08:00
Harshavardhana 1badfc8a04 :mc: resumable downloads and support incomplete files on file system. 2015-11-28 18:00:53 -08:00
Anand Babu (AB) Periasamy 8fc138f3a0 organize global flags after cmd flag 2015-11-24 16:59:46 -08:00
Harshavardhana d8e8fb0089 session: remove unnecessary fatal even for successful resume.
Fixes #1474
2015-11-22 01:11:00 -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
Anand Babu (AB) Periasamy 052f73f348 restructure globals and some bug fixes related to globals 2015-11-21 12:43:21 -08:00
Harshavardhana c757cf1829 trace: Add missing traces. 2015-11-19 17:23:00 -08:00
Harshavardhana 1a85e97050 session: Make session resume more user friendly 2015-11-19 13:08:13 -08:00
Anand Babu (AB) Periasamy 123fde256e new recursive cp and session 2015-11-19 12:41:55 -08:00
Harshavardhana 58056b0331 session: Move to session v4 2015-11-19 01:14:16 -08:00
Krishna Srinivas 36505dfd2c Add 4th example for mc session to show deletion of all sessions 2015-11-18 23:13:24 -08:00
Harshavardhana 34c9896d1d doc: Add various missing documentation across the codebase. 2015-11-18 12:52:46 -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
Anand Babu (AB) Periasamy e1763a057b show help flag for mc 2015-11-16 12:52:54 -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 39f7441790 fixes related to help handling 2015-11-15 20:05:58 -08:00
Anand Babu (AB) Periasamy dfbd6e6567 new help command 2015-11-14 23:37:00 -08:00
Anand Babu (AB) Periasamy d917951b58 review session code 2015-11-12 11:46:06 -08:00
Harshavardhana d6c16ad597 cp/mirror: cleanup - now support --force flag 2015-11-10 23:47:02 -08:00
Anand Babu (AB) Periasamy 970927cc6b simplify setting console theme 2015-11-10 16:45:32 -08:00
Anand Babu (AB) Periasamy 334e864eea Prints cleanup 2015-11-07 16:41:42 -08:00
Harshavardhana 540b76fb9c Update docs for share, session and config 2015-11-04 20:14:01 -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 c4b9891c6e Always make sure to verify argument validation in checkSyntax**.
Cleanup share-upload.go to be aware of different argument validation.
2015-10-10 13:05:33 -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 87aadd20ec Improve mirror error message 2015-10-06 11:12:16 -07:00
Harshavardhana 36e2c1813d Each command messages now implement
- String() for colorized output
  - JSON() for json marshalled output

All messages should adhere to this interface unless its
explicitly not necessary in some cases.
2015-09-13 02:20:43 -07:00
Harshavardhana f286159567 Remove hyphenated properties in json output, helps scripting and programming. 2015-09-07 17:12:49 -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
Harshavardhana cb0f5a5b19 Updates now handle release and experimental updates
- 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
    ...
    ```
2015-08-25 00:26:23 -07:00
Harshavardhana 3df07ac29f Add checkCommandSyntax for all commands 2015-08-24 19:31:30 -07:00
Anand Babu (AB) Periasamy 831db52dcf thread-safe typed errors 2015-08-24 12:55:11 -07:00
Harshavardhana a06a926b66 Move coloring to their own main* functions 2015-08-24 12:12:25 -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 e61ad067cd final review of all error messages 2015-08-22 23:15:30 -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
Anand Babu (AB) Periasamy 7d624457b0 updated error messages 2015-08-21 17:47:45 -07:00
Harshavardhana dfd1b29d5f Improve error messages 2015-08-20 17:22:38 -07:00
Harshavardhana fa0c9e38bb Add error messages to fatalIf and errorIf 2015-08-19 17:11:34 -07:00
Harshavardhana 3caee383f0 Migrate to govendor to avoid limitations of godep
- over the course of a project history every maintainer needs to update
  its dependency packages, the problem essentially with godep is manipulating
  GOPATH - this manipulation leads to static objects created at different locations
  which end up conflicting with the overall functionality of golang.

  This also leads to broken builds on many platforms. There is no easier way out of
  this other than asking users to do 'godep restore' all the time which perhaps as
  a practice doesn't sound clean, also has its own set of problems.

- govendor on the other hand is a right tool but a stop gap tool until we wait for
  golangs official 1.5 version which fixes this vendoring issue once and for all.

- govendor makes sure that the import paths are re-written instead of manipulating
  GOPATH.

  This has advantages
    - no more compiled objects being referenced in GOPATH and build time GOPATH
      manging which leads to conflicts.
    - proper import paths referencing the exact package a project is dependent on.

  govendor is simple and provides the minimal necessary tooling to achieve this.

  For now this is the right solution.
2015-08-12 19:04:16 -07:00
Harshavardhana 6a59d9a046 Rename all main command actions into main<Command> from run<Command>Cmd 2015-08-12 01:26:35 -07:00
Harshavardhana 25e5ea2574 Move to server package for probe 2015-08-10 19:49:57 -07:00