Commit Graph
51 Commits
Author SHA1 Message Date
Anand Babu (AB) Periasamy f2434591d9 fix error strings 2015-07-19 15:27:30 -07:00
Harshavardhana f717e9b560 Migrate to upstream gopkg.in/check.v1 2015-07-18 15:52:17 -07:00
Harshavardhana 5cb7d510e5 Some gocoverage fixes 2015-07-16 19:38:40 -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
Anand Babu (AB) Periasamy 6dcd73551c Session V2 implementation for copy and sync 2015-07-12 20:47:49 -07:00
Harshavardhana 694cc7bb8e Simplify console removing lot of custom json unmarshal code 2015-07-12 09:18:20 -07:00
Anis Elleuch 3550b85cc7 Protect progress bar printing by the mutex 2015-07-01 17:40:45 +01:00
Harshavardhana 4b88ad7786 Move to structure printing everywhere, fix incorrect iodine usage at few places 2015-06-22 15:29:36 -07:00
Harshavardhana 7ee4692ceb Print sessions just like ls 2015-06-22 14:57:06 -07:00
Harshavardhana 1dbb2e2b96 Add more structured informational messages 2015-06-22 11:33:14 -07:00
Anand Babu (AB) Periasamy d57fdd909f remove retry capability 2015-05-30 16:53:34 -07:00
Harshavardhana 8422db004c Add stderr to support piped nocolor output 2015-05-27 15:40:41 -07:00
Harshavardhana a65f431004 Handle symlinks by making them behave like hardlinks 2015-05-26 19:06:29 -07:00
Harshavardhana 25f847b3b6 Implement console.Fatals, Errors, Infos, Prints for structure input and printing 2015-05-26 17:59:35 -07:00
Harshavardhana 76c3345f47 Change range to simpler for loop, range over array of interfaces{} doesn't seem to work 2015-05-25 11:30:48 -07:00
Harshavardhana 5515e627d4 Bring back support for Formatted strings 2015-05-24 19:23:31 -07:00
Harshavardhana 3dd6b53c55 Add progress bar as a new theme element 2015-05-24 14:30:28 -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 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 24803e108b Merge pull request #669 from vadmeste/pr_out_fix_colored_output_for_windows 2015-05-21 18:38:44 -07:00
Harshavardhana aeaf8d4055 Reorder options, print only error messages 2015-05-21 18:08:12 -07:00
Anis Elleuch 1c85ce6c69 Fix output coloring in Windows Command Prompt 2015-05-21 23:34:59 +01:00
Harshavardhana 1a319b80ad Implement cp tests
-- update bar.Total with atomic.AddInt64
-- expose console mutex Lock/Unlock()
-- send errors in cp over channels
2015-05-20 21:43:58 -07:00
Harshavardhana e6d6375039 Collate isatty() code for bsd and linux 2015-05-16 18:27:05 -07:00
Harshavardhana 6d4a7c5e7b Add function isatty() to detect if Stdout for console is a terminal, if not disable coloring - fixes #631
Necessary when one has to pipe ``mc`` output to non terminal applications like ``less`` ``more`` etc.
2015-05-16 18:11:56 -07:00
Harshavardhana e4a77c7391 Change minio-io to minio 2015-05-11 16:24:26 -07:00
Harshavardhana 607d86e5c3 Add few more tests 2015-05-02 14:04:29 -07:00
Harshavardhana f914a059d3 Use console.Debugln instead of log.Debug.Println 2015-05-02 12:32:21 -07:00
Harshavardhana 744ed7dcd1 Bring old documentation back 2015-04-28 11:03:34 -07:00
Harshavardhana 62750317d4 Add proper retry() mechanisms and print that in Magenta color 2015-04-25 23:08:44 -07:00
Anand Babu (AB) Periasamy 409309442e fix scrolling progressbar bug 2015-04-24 12:01:28 -07:00
Anand Babu (AB) Periasamy 514b848d46 Console outputs Fatal, Error and Debug messages on os.stderr 2015-04-24 04:01:55 -07:00
Harshavardhana 17d0f05560 Print ls with special color for directories 2015-04-23 21:36:12 -07:00
Anand Babu (AB) Periasamy c09ce54090 console enhancements, consistent error message and janitor duty 2015-04-23 21:25:10 -07:00
Anand Babu (AB) Periasamy 94d89c2181 no color for win for now 2015-04-23 03:10:36 -07:00
Anand Babu (AB) Periasamy eb29760aec update console package and add additional nocolor check 2015-04-23 01:17:50 -07:00
Anand Babu (AB) Periasamy 16e8cec82a field specific color theme 2015-04-23 01:02:17 -07:00
Anand Babu (AB) Periasamy b923232e9f console theme improvements 2015-04-22 18:05:42 -07:00
Harshavardhana b42d3a3af7 Implement simple authkey and console tests 2015-04-21 01:14:28 -07:00
Harshavardhana af1cb1b478 Make sure to properly exit if requested theme not available, also re-structure console package a bit 2015-04-20 13:19:52 -07:00
Anand Babu (AB) Periasamy 040b15b240 disable console theme on Windows 2015-04-17 16:31:30 -07:00
Anand Babu (AB) Periasamy 90f853a00f Modern Copy to Mini Copy 2015-04-16 20:13:52 -07:00
Harshavardhana 0935573255 Prefix error messages with mc: part of #286 2015-04-16 15:53:33 -07:00
Harshavardhana 6bfb0b0b7c Simplify console further 2015-04-14 05:12:45 -07:00
Anand Babu (AB) Periasamy b0cae379fa console theme 2015-04-14 02:55:04 -07:00
Anand Babu (AB) Periasamy e7a2699ab2 minio client becomes modern copy 2015-04-11 17:11:38 -07:00