Harshavardhana
fe594e1b26
piping cli help output leads to error, fix it by ignoring syscall.EPIPE
...
without this fix - template tries to write to /dev/stdout even after its closed leading to a crash as below
~~~
panic: template: help:21:20: executing "help" at < https://s3.amazonaw ...>: write /dev/stdout: broken pipe
~~~
Ignore syscall.EPIPE since its an expected result
2015-08-19 11:27:50 -07:00
Harshavardhana
56705ec1c6
Merge pull request #1008 from harshavardhana/remove_indent
...
Remove json indent for easing parsing
2015-08-19 02:39:12 -07:00
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
f8fc43d76a
Merge pull request #1007 from abperiasamy/error-handling-update
...
error handling updates
2015-08-19 01:35:01 -07:00
Anand Babu (AB) Periasamy
c50bc9c22f
error handling updates
2015-08-19 01:27:40 -07:00
Harshavardhana
d6e8bd5ca9
Merge pull request #1006 from harshavardhana/error
...
Separate out Cause and full Debug message
2015-08-19 00:42:01 -07:00
Harshavardhana
3b7801751a
Separate out Cause and full Debug
2015-08-19 00:39:09 -07:00
Harshavardhana
4b1e5944e6
Merge pull request #1005 from harshavardhana/error
...
Remove redundant error usage, use *probe.Error containerized
2015-08-19 00:30:30 -07:00
Harshavardhana
6d5b6e1d09
Remove redundant error usage, use *probe.Error containerized
2015-08-19 00:29:36 -07:00
Harshavardhana
2f4dd5b9f3
Merge pull request #1004 from harshavardhana/vendorize_error
...
update mc to new changes in probe and minio-go (0.2.2)
2015-08-19 00:03:25 -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
6d4a5173fd
Merge pull request #1003 from harshavardhana/error
...
Probe error should be marshalled as json.RawMessage to avoid re-encod…
2015-08-16 11:54:29 -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
27016a122e
Merge pull request #1002 from harshavardhana/content
...
Add JSON() printing for error and fatal messages
2015-08-14 07:14:51 -07:00
Harshavardhana
b3f907b19b
Add JSON() printing for error and fatal messages
2015-08-14 07:13:27 -07:00
Harshavardhana
e4aa57521d
Merge pull request #1001 from harshavardhana/remove_version
...
Remove Version string from json printer, rename first-time.go to verif…
2015-08-13 21:02:04 -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
7543b71aed
Merge pull request #1000 from harshavardhana/version_cmd
...
Add new version command
2015-08-13 20:52:31 -07:00
Harshavardhana
192518d679
Add new version command
2015-08-13 20:50:32 -07:00
Harshavardhana
ff27f3a0f3
Merge pull request #999 from harshavardhana/vendorize_quick
...
Move quick to server and vendorize it
2015-08-13 16:41:39 -07:00
Harshavardhana
b743f88353
Move quick to server and vendorize it
2015-08-13 16:38:24 -07:00
Harshavardhana
ab1f9aaaa8
Merge pull request #998 from harshavardhana/maintainers
...
Add maintainers file
2015-08-13 11:29:41 -07:00
Harshavardhana
05675cbd14
Add maintainers file
2015-08-13 11:28:13 -07:00
Harshavardhana
c5e656372d
Merge pull request #997 from harshavardhana/races-fixed
...
Fix test cases where cp and mirror would fail
2015-08-12 22:17:15 -07:00
Harshavardhana
99f53fe45d
Fix test cases where cp and mirror would fail
...
- globalQuietFlag and globalJSONFlag should be checked in conjunction
for terminal features to be disabled. Otherwise ioctl fails for
calculating the term size.
- Avoid unnecessary scoping for probe, it has two different error sets now
2015-08-12 22:11:31 -07:00
Harshavardhana
e2c4d25e86
Merge pull request #996 from harshavardhana/migrate-to-govendor
...
Migrate to govendor to avoid limitations of godep
2015-08-12 19:15:20 -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
7201658ee8
Merge pull request #995 from harshavardhana/improve-share
...
Improve share command
2015-08-12 17:01:12 -07:00
Harshavardhana
3185ca1146
Improve share command
2015-08-12 17:00:07 -07:00
Harshavardhana
d7c730cd59
Merge pull request #994 from harshavardhana/folder
...
Rename conf-dir to config-folder to be consistent with our naming con…
2015-08-12 16:20:54 -07:00
Harshavardhana
abbf27ca01
Rename conf-dir to config-folder to be consistent with our naming convention regarding folders v/s directories
2015-08-12 16:17:29 -07:00
Harshavardhana
1afd94c9d5
Merge pull request #993 from harshavardhana/rename-alias
...
Rename --alias to --mimic, remove --force flag
2015-08-12 16:03:50 -07:00
Harshavardhana
38a25410ef
Rename --alias to --mimic, remove --force flag
2015-08-12 16:02:11 -07:00
Harshavardhana
1129bcec30
Merge pull request #992 from harshavardhana/turn-off-coloring
...
Turn off coloring when terminals are not tty even for os.Stdout
2015-08-12 15:12:34 -07:00
Harshavardhana
0571fe67a2
Turn off coloring when terminals are not tty even for os.Stdout
2015-08-12 15:11:15 -07:00
Harshavardhana
87d37521c8
Merge pull request #991 from krishnasrinivas/rename-config-to-conf-dir
...
rename --config to --conf-dir and do firstTimeRun() after setMcConfig…
2015-08-12 14:19:15 -07:00
Krishna Srinivas
22d7258a0e
rename --config to --conf-dir and do firstTimeRun() after setMcConfigDir()
2015-08-13 02:37:35 +05:30
Harshavardhana
a62a936c9d
Merge pull request #990 from harshavardhana/settheme-issue
...
Possible fix for SetTheme issue
2015-08-12 12:48:58 -07:00
Harshavardhana
40d096353d
Possible fix for SetTheme issue
2015-08-12 12:48:00 -07:00
Harshavardhana
03542acc1d
Merge pull request #989 from harshavardhana/rename-mainfuncs
...
Rename all main command actions into main<Command> from run<Command>Cmd
2015-08-12 01:27:50 -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
ac3e399d69
Merge pull request #988 from harshavardhana/deps-update
...
Update minio-go to latest release 0.2.1
2015-08-12 01:11:25 -07:00
Harshavardhana
703addae62
update minio-go to latest release 0.2.1
2015-08-12 01:10:24 -07:00
Harshavardhana
e86395917b
Merge pull request #987 from harshavardhana/simplify-strings
...
Simplify and enhance error strings
2015-08-12 01:09:57 -07:00
Harshavardhana
413ce3995e
Simplify and enhance error strings
2015-08-12 01:05:02 -07:00
Harshavardhana
abccc35d37
Merge pull request #986 from harshavardhana/print-json
...
Print json output for share urls as well
2015-08-11 23:18:46 -07:00
Harshavardhana
ed70bbb7e3
Print json output for share urls as well
2015-08-11 23:17:23 -07:00
Harshavardhana
8ee45d8f72
Merge pull request #985 from harshavardhana/probe-from-server
...
Move to server package for probe
2015-08-10 20:25:21 -07:00
Harshavardhana
25e5ea2574
Move to server package for probe
2015-08-10 19:49:57 -07:00
Harshavardhana
6e9d7f40c2
Merge pull request #984 from harshavardhana/pr_out_move_from_fatal_error_to_fatalif_errorif
...
Move from Fatal/Error to fatalIf/errorIf
2015-08-09 22:42:41 -07:00