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
Anand Babu (AB) Periasamy
3439ca5fde
handle recursive prefix properly
2015-06-05 21:49:33 -07:00
Harshavardhana
eeb71d212a
Add missing String() method for ErrorMessage struct as well
2015-05-24 13:13:28 -07:00
Harshavardhana
192285c2af
Remove console to depend on its own structures, instead let it deal with interface{}
2015-05-24 12:58:30 -07:00
Harshavardhana
b4649291f1
Add recursive listing with s3:...
2015-05-22 19:51:56 -07:00
Harshavardhana
5ce6cc8e37
On windows display directories with forward slash and also interpret prefixes
2015-05-22 19:33:26 -07:00
Harshavardhana
54d0f9c553
Refactoring console printing style, supports --json even for error messages now - fixes #418
2015-05-22 18:27:07 -07:00
Harshavardhana
edb8381400
Refactor debugging output, implement --json output currently only supported on 'ls'
2015-05-21 22:30:32 -07:00
Harshavardhana
dcccafacbe
Simplify listing recursively into one function, diff now supports <filename> <directory> style
2015-05-20 02:44:15 -07:00
Harshavardhana
d45463ea41
Fix consistency of ls output
2015-05-16 12:39:21 -07:00