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
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
0571fe67a2
Turn off coloring when terminals are not tty even for os.Stdout
2015-08-12 15:11:15 -07:00
Harshavardhana
40d096353d
Possible fix for SetTheme issue
2015-08-12 12:48:00 -07:00
Harshavardhana
25e5ea2574
Move to server package for probe
2015-08-10 19:49:57 -07:00
Harshavardhana
c97c2a77b5
Move testing into its own <package>_test, add probe.NewError() new changes
2015-08-08 11:16:36 -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
26eb25bb92
Fix console issues related to os.Stderr and terminal handling
2015-08-04 23:21:37 -07:00
Harshavardhana
e7dab5f1cf
Migrating from iodine to probe
2015-08-03 11:04:34 -07:00
Harshavardhana
7ef19ab316
Add support for virtual styled hosts and update godeps
2015-07-30 13:15:57 -07:00
Harshavardhana
b90e016892
Add command context testing
2015-07-24 12:42:33 -07:00
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