Commit Graph
66 Commits
Author SHA1 Message Date
Krishna Srinivas 1cab0c2c24 recursive ls on object storage was giving incorrect output
fix for #1196
2015-10-21 14:55:00 -07:00
Harshavardhana 1eb171544f Implement mc ls incomplete s3/bucketname 2015-10-19 22:28:34 -07: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
Anis Elleuch 45b1351991 Relax too many levels symlink error when traversing folders/files 2015-10-08 22:56:59 +01:00
Harshavardhana b8bd40e685 Disable JSON based testing, reduce ls tests to its context only 2015-09-19 19:42:25 -07:00
Harshavardhana 8adfb595b7 Trim prefix from recursive multiple args output in ls 2015-09-16 03:11:39 -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 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 2bca24e0fa golang filepath.EvalSymlinks doesn't handle juntion files handle them - fixes #1076 2015-09-04 13:32:00 -07:00
Harshavardhana 3e5178ddb2 diff should handle type and size as well in recursive diff 2015-08-24 00:02:50 -07:00
Harshavardhana dd5314a938 Merge pull request #1033 from harshavardhana/json-review
Fixes for json review #1
2015-08-23 01:25:55 -07:00
Harshavardhana b9c28d588b Fixes for json review #1 2015-08-23 01:24:04 -07:00
Anand Babu (AB) Periasamy f2899ef228 replaced panic with probe 2015-08-22 23:26:56 -07:00
Anand Babu (AB) Periasamy 099b4478d6 replaced panic with probe 2015-08-22 23:25:11 -07:00
Anand Babu (AB) Periasamy d8bb1e9fd6 replaced panic with probe 2015-08-22 23:22:17 -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 fa0c9e38bb Add error messages to fatalIf and errorIf 2015-08-19 17:11:34 -07:00
Harshavardhana 6173eff288 update mc to new changes in probe and minio-go (0.2.2) 2015-08-19 00:02:01 -07:00
Harshavardhana b3f907b19b Add JSON() printing for error and fatal messages 2015-08-14 07:13:27 -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 413ce3995e Simplify and enhance error strings 2015-08-12 01:05:02 -07:00
Harshavardhana 25e5ea2574 Move to server package for probe 2015-08-10 19:49:57 -07:00
Harshavardhana ae2a20dffc Move from Fatal/Error to fatalIf/errorIf 2015-08-09 22:41:49 -07:00
Harshavardhana 202f9e7646 Probe moves closer to mc, also brings in changes by avoiding it behave like an error interface{} 2015-08-07 00:53:37 -07:00
Harshavardhana e6fd52f026 Rename ifFatal and ifError as Fatal, Error 2015-08-03 22:19:45 -07:00
Harshavardhana e7dab5f1cf Migrating from iodine to probe 2015-08-03 11:04:34 -07:00
Harshavardhana 1afc92cb49 Add cast syntax check logic
-- TypeA for both cast and copy targetURL check shouldn't fail it it doesn't exist
   such is a common occurrence of not having a target, instead we verify if it exists
   is it a directory?
-- Rename all 'directory' references to folder
2015-07-24 14:43:47 -07:00
Harshavardhana 38149f5ba1 Allow copy for virtual files 2015-07-18 16:30:36 -07:00
Harshavardhana 97f693ce1f Use console.JSON to print in API style for session, ls, cp and sync 2015-07-15 23:18:08 -07:00
Harshavardhana 25ada41480 Implement NewIodine() in a simpler way 2015-07-15 18:39:17 -07:00
Harshavardhana 8fa80fbf37 Revert "Add mc top level error handling without printing stack traces."
This reverts commit ab4f64b5e3.
2015-07-15 17:25:42 -07:00
Harshavardhana ab4f64b5e3 Add mc top level error handling without printing stack traces. 2015-07-15 16:53:28 -07:00
Harshavardhana d4047ca899 Cleanup minio, remote struct printing for Info, Error and Fatal - simplifying overall error handling 2015-07-14 11:02:04 -07:00
Harshavardhana f10801fb18 Make json umarshalling as part of print-structs 2015-07-12 09:55:30 -07:00
Harshavardhana 9971d4964c mc session related changes 2015-06-29 23:12:28 -07:00
Harshavardhana 4b88ad7786 Move to structure printing everywhere, fix incorrect iodine usage at few places 2015-06-22 15:29:36 -07:00
Harshavardhana b7e06060b3 Make sure to skip broken links 2015-06-16 02:30:13 -07:00
Harshavardhana d6a651e334 Windows fix for directory crawling 2015-06-12 12:16:09 -07:00
Harshavardhana 05f94b258d Ignore readlink errors 2015-06-11 22:38:29 -07:00
Harshavardhana 6997a953ee Do not exit on ls error 2015-06-09 19:17:34 -07:00
Harshavardhana 168926fa06 All methods use now target2Client, source2Client, url2Client helpers 2015-06-09 10:37:48 -07:00
Harshavardhana 71b34e4347 Add some comments in ls.go 2015-06-08 02:17:22 -07:00
Harshavardhana e95c3bd3e8 Now fs behaves similar to s3 style delimited output 2015-06-06 21:23:33 -07:00
Anand Babu (AB) Periasamy 4da1d24405 prefix with parent path for dir... case 2015-06-06 15:11:03 -07:00
Harshavardhana 33f4c65349 Delimit fs output similar to s3, no special handling needed 2015-06-06 12:29:12 -07:00
Anand Babu (AB) Periasamy 7d7f6c6bb2 handle recursive prefix properly for cp and sync as well 2015-06-05 22:15:24 -07:00