Commit Graph
60 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 8949e30524 incomplete-upload: Listing should handle incomplete upload prefixes as well.
Fixes #1514
2015-12-02 10:36:56 -08:00
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
Harshavardhana cc0cde16c6 ls: Fix ls output - fixes #1466 2015-11-21 16:57:44 -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 de9380dd9d doc: Improve examples. 2015-11-19 19:24:25 -08:00
Harshavardhana c757cf1829 trace: Add missing traces. 2015-11-19 17:23:00 -08:00
Harshavardhana 2a9293b79f url: prefixExists should be isURLPrefixExists 2015-11-19 15:02:55 -08:00
Harshavardhana 5f9055e7fd ls: Non-existant file or prefix throw an error 2015-11-17 17:58:58 -08:00
Anand Babu (AB) Periasamy 4ee7cb92e0 use recursive flag for ls 2015-11-17 15:55:43 -08:00
Harshavardhana 4bd5f3063a args: Multiple args shouldn't fail in bettween, should continue and print errors if any
Fixes #1365
2015-11-17 10:48:31 -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 3950402c89 review of cp ls mirror pipe and rm 2015-11-12 01:34:43 -08:00
Anand Babu (AB) Periasamy 881a8a1366 cat code review 2015-11-12 00:12:11 -08:00
Anand Babu (AB) Periasamy ed0dbb835b simplify ls command 2015-11-11 17:45:20 -08:00
Anand Babu (AB) Periasamy 970927cc6b simplify setting console theme 2015-11-10 16:45:32 -08:00
Harshavardhana 08c90a2c03 doc: Add google cloud storage 2015-11-09 23:46:46 -08:00
Harshavardhana 6d86cbc686 copy: Fix copyURLsTypeC style of copying with or without separator.
- `mc cp pkg... test` copies all `pkg` including itself
- `mc cp pkg/... test` copies all content inside `pkg` excluding `pkg`
2015-11-08 15:24:38 -08:00
Harshavardhana 6a8224b4ab cleanup: Cleanup across code base.
- improve on code comments, needs more work this is a first cut.
- improve on naming conventions and simplification as and when
  necessary.
2015-11-08 13:22:32 -08:00
Harshavardhana b9033d1cac structure: Move client.Content to return a URL object
This change is needed to avoid extensive string manipulation
of URLs throughout the code base.

A client interface sends back data as a proper URL object,
this facilitates us to avoid unnecessary string manipulation
by making code more cleaner.
2015-11-07 22:12:52 -08:00
Harshavardhana 8de841cd69 list: Move incomplete as last argument.
implement args.Head() to handle this case smoothly.
2015-11-06 16:17:15 -08:00
Harshavardhana 1eb171544f Implement mc ls incomplete s3/bucketname 2015-10-19 22:28:34 -07:00
Anand Babu (AB) Periasamy 636f243dcc target2client and source2client methods are not necessary 2015-10-11 03:07:47 -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 8164410b4e Change the 'ls' output behavior
- do not add odd prefixes like GNU 'ls' since it clobbers users view
- add minio specific to differentiate the users view of 'ls' output

Rather than having output in the following manner

```
$ mc ls pkg vendor
pkg:
client console

vendor:
github.com
```

It should be

```
$ mc ls pkg vendor
pkg/client
pkg/console
vendor/github.com
```

This way the differentiation and the API is not disturbed.

This patch fixes this issue.
2015-09-16 03:01:29 -07:00
Harshavardhana dad28fbe16 ls modifications - always print for multiple arguments files first and directories second 2015-09-15 23:03:45 -07:00
Harshavardhana 265d532237 Make changes over vadmestes changes 2015-09-15 20:55:32 -07:00
Anis ELLEUCH b7fbd307d4 Print folder names when the user asks to list several folders 2015-09-15 20:55:32 -07:00
Harshavardhana c50b16c70f Update documentation for mb, cp, mirror for files and folders with space characters 2015-09-07 01:22:14 -07:00
Harshavardhana c46ea80fff Move primitives for add, list, remove into their own subcommands as alias,host etc. 2015-09-01 19:58:33 -07:00
Harshavardhana aaec806897 Simplify help messages 2015-09-01 14:54:13 -07:00
Anand Babu (AB) Periasamy fddcb821fa URL related bug fixes and cleanup 2015-08-30 02:14:24 -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 3df07ac29f Add checkCommandSyntax for all commands 2015-08-24 19:31:30 -07:00
Harshavardhana a06a926b66 Move coloring to their own main* functions 2015-08-24 12:12:25 -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 0de688948a error messages and tiny bug fixes 2015-08-22 19:47:11 -07:00
Harshavardhana a0e66ce640 Migrate to golang1.5 with new GO15VENDOREXPERIMENT enabled 2015-08-22 19:04:17 -07:00
Harshavardhana 878c8e2693 Migrate to newer version of config '2' 2015-08-20 21:03:39 -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 38a25410ef Rename --alias to --mimic, remove --force flag 2015-08-12 16:02:11 -07:00