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
Anand Babu (AB) Periasamy
c50bc9c22f
error handling updates
2015-08-19 01:27:40 -07:00
Harshavardhana
3b7801751a
Separate out Cause and full Debug
2015-08-19 00:39:09 -07:00
Harshavardhana
6d5b6e1d09
Remove redundant error usage, use *probe.Error containerized
2015-08-19 00:29:36 -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
6313bb2c46
Probe error should be marshalled as json.RawMessage to avoid re-encoding of an already marshalled string
2015-08-16 11:23:51 -07:00
Harshavardhana
b3f907b19b
Add JSON() printing for error and fatal messages
2015-08-14 07:13:27 -07:00
Harshavardhana
34818f875d
Remove Version string from json prints, rename first-time.go to verify-runtime.go
2015-08-13 21:00:52 -07:00
Harshavardhana
3185ca1146
Improve share command
2015-08-12 17:00:07 -07:00
Harshavardhana
ed70bbb7e3
Print json output for share urls as well
2015-08-11 23:17:23 -07:00
Harshavardhana
b6a2e5c4af
Add diff json
2015-08-04 21:41:26 -07:00
Harshavardhana
4d2be23260
cast to mirror
2015-07-30 23:10:47 -07:00
Harshavardhana
ded42e0df2
Rename cast to mirror
2015-07-30 16:20:07 -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
363c06d8f7
Rename sync to cast
2015-07-17 18:27:45 -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
d4047ca899
Cleanup minio, remote struct printing for Info, Error and Fatal - simplifying overall error handling
2015-07-14 11:02:04 -07:00
Harshavardhana
25237c4e20
Remove InfoMessage structs, we don't need to add this as API handling for json
2015-07-13 09:40:29 -07:00
Harshavardhana
f10801fb18
Make json umarshalling as part of print-structs
2015-07-12 09:55:30 -07:00
Harshavardhana
46bf1af56c
Treating --json as quiet mode for cp and sync operations
2015-06-30 10:26:48 -07:00
Harshavardhana
9971d4964c
mc session related changes
2015-06-29 23:12:28 -07:00
Harshavardhana
01b10bd4b1
Simplify target2Client and sourc2Client usage - use url2Stat()
2015-06-23 16:49:23 -07:00
Harshavardhana
9b901bac21
Fix sync bug when in TypeA and TypeB sync style source doesn't exist
2015-06-22 15:57:02 -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
1dbb2e2b96
Add more structured informational messages
2015-06-22 11:33:14 -07:00
Harshavardhana
1983caf2e2
Attempt to make informational message a structure
2015-06-22 07:44:08 -07:00
Harshavardhana
a772ef963b
Remove Reason: prefix for error prints
2015-05-29 01:12:56 -07:00
Harshavardhana
eeb71d212a
Add missing String() method for ErrorMessage struct as well
2015-05-24 13:13:28 -07:00