Anis Elleuch
98ac1817cb
Rewrite diff code ( #1681 )
2016-04-17 01:18:30 -07:00
Harshavardhana
619b1b4e2a
url: There is no reason to split '?' delimiter. ( #1679 )
...
The reasoning is that we are not providing query
params through 'mc' and we don't need to handle it
specially. Since all paths are absolute with only
delimiter of '/' all other characters should be allowed
including '?'.
For this same reason now newURL is called newClientURL.
Fixes #1677
2016-04-11 18:20:56 -07:00
Harshavardhana
c022107515
diff: Implement url difference with time.
...
Also make a 'differType' - fixes #1632
2016-03-09 22:11:07 -08:00
Harshavardhana
bd1086c244
diff/mirror: Factory function now refactored to reply function only idiomatic style.
...
Refactor the current code into more idiomatic style and use
consistent variable names.
ref #1628
2016-03-04 19:52:32 -08:00
Harshavardhana
fe5b2f97e3
fs/s3: move the code for fs and s3 out to the top-level.
...
Now the interface moves to the top level - fixes #1604
2016-02-16 11:27:42 -08:00
Super-User
5219fd59e8
porting: mc now properly works on solaris.
...
Fixes #1603
2016-02-15 15:03:40 -08:00
Harshavardhana
3b5dcd478a
ls: Make recursive and non-recursive behave the same way
...
Outputs for recursive today
```
$ mc ls -r /tmp/value/
[2016-01-25 12:27:01 PST] 52B test.go
[2016-01-26 11:36:22 PST] 4.2KiB test.txt
[2016-01-26 11:45:22 PST] 102B test/
[2016-01-26 11:45:22 PST] 4.2KiB test/README.md
```
and Outputs for non recursive today differ lexically.
```
$ mc ls /tmp/value/
[2016-01-26 11:45:22 PST] 102B test/
[2016-01-25 12:27:01 PST] 52B test.go
[2016-01-26 11:36:22 PST] 4.2KiB test.txt
```
To fix this issue we need to capture the ending '/' as
well part of the names while sorting the output. This
patch addresses this problem.
2016-01-26 18:11:24 -08:00
Harshavardhana
b347137d88
diff/mirror: Handle aliases properly now.
2016-01-08 21:24:07 -08:00
Anand Babu (AB) Periasamy
0bd1edfd8f
new alias style and numerous cleanups.
2015-12-28 15:31:52 -08:00
Anand Babu (AB) Periasamy
8fc138f3a0
organize global flags after cmd flag
2015-11-24 16:59:46 -08:00
Harshavardhana
fd1cde749a
mc: Fix setGlobalContext across all commands.
...
- Always set globals from context before validating input arguments.
- Add missing os.Exit(1) from console.Fatal{f,ln} which was
accidentally removed from previous commits.
Fixes #1472
2015-11-22 00:33:35 -08:00
Anand Babu (AB) Periasamy
558c20e1e3
set globals from context from each command main
2015-11-21 18:26:58 -08:00
Anand Babu (AB) Periasamy
269ac7b105
global flags are replaced with command speific flags, but still retain global behavior
2015-11-21 14:20:00 -08:00
Harshavardhana
de9380dd9d
doc: Improve examples.
2015-11-19 19:24:25 -08:00
Harshavardhana
c757cf1829
trace: Add missing traces.
2015-11-19 17:23:00 -08:00
Harshavardhana
da65cbae06
config: Extensive changes to config and host handling
...
- alias now expands for all match aliases and also any matching hosts.
Example:- mc ls -r s3.amazonaws.com/ferenginar/bin
- not globs, no hosts - only fully qualified URLs are stored in config.
- everywhere use 'args2URLs()' getAliasURL should be used internally.
2015-11-19 00:20:11 -08:00
Harshavardhana
d5dd4fb5bd
json: JSON messages now have proper status field for all messages
...
Fixes - #1369
2015-11-18 00:24:32 -08:00
Krishna Srinivas
61ec25d2bf
diff - continue on non-fatal error. refactor to remove unneeded goroutine
2015-11-17 23:46:55 -08:00
Anand Babu (AB) Periasamy
f7bf20e4ce
implement -h flag
2015-11-17 21:16:56 -08:00
Harshavardhana
1c2f292f77
ls: listing fixes for all the bugs we found
...
- fixes #1356
- fixes #1355
- fixes #1358
2015-11-17 14:32:45 -08:00
Harshavardhana
cbb937139e
docs: Changes necessary for comprehensive doc changes
...
Fixes #1385 , #1384 , #1381 , #1367 , #1363
2015-11-17 09:14:57 -08:00
Anand Babu (AB) Periasamy
19453ed798
fix doc strings
2015-11-16 00:07:52 -08:00
Krishna Srinivas
7999472cb7
diff, mirror always take directories as arguments and always does recursive operations
2015-11-15 22:22:58 -08:00
Krishna Srinivas
d75690c4fd
cleanup for mirror and diff on the way it calculates difference between directories, also fixes #1262
2015-11-15 16:28:04 -08:00
Anand Babu (AB) Periasamy
dfbd6e6567
new help command
2015-11-14 23:37:00 -08:00
Anand Babu (AB) Periasamy
970927cc6b
simplify setting console theme
2015-11-10 16:45:32 -08:00
Harshavardhana
8f11c67956
diff: Add scanBar for recursive diff
2015-11-10 01:58:06 -08:00
Harshavardhana
dc985953e4
diff: Cleanup diff
...
- overall simplification and reduction in repetitive code.
- use select for multi channel synchronization.
2015-11-09 16:37:54 -08:00
Anand Babu (AB) Periasamy
334e864eea
Prints cleanup
2015-11-07 16:41:42 -08:00
Harshavardhana
6d95872ad8
Add new --colors option for choosing different coloring styles for console printing
...
Each command implements and interprets the following coloring styles
- ``dark`` - default coloring style picks up palette colors Cyan, Red, Blue, White etc
- ``light`` - lighter chooses white colored console printing.
- ``nocolor`` - nocolor is for console printing without any colors.
All coloring internally use ASCII color schemes, portable across all known OS.
2015-10-07 17:08:42 -07:00
Harshavardhana
dbe53325b0
Add SetCustomPalette rather than theme
2015-10-07 12:54:35 -07:00
Harshavardhana
b7e6a4358b
Changes to test framework, remove references to 'Cmd'wq
2015-09-15 21:47:38 -07:00
Harshavardhana
36e2c1813d
Each command messages now implement
...
- String() for colorized output
- JSON() for json marshalled output
All messages should adhere to this interface unless its
explicitly not necessary in some cases.
2015-09-13 02:20:43 -07:00
Harshavardhana
c46ea80fff
Move primitives for add, list, remove into their own subcommands as alias,host etc.
2015-09-01 19:58:33 -07:00
Harshavardhana
aaec806897
Simplify help messages
2015-09-01 14:54:13 -07:00
Anand Babu (AB) Periasamy
fddcb821fa
URL related bug fixes and cleanup
2015-08-30 02:14:24 -07:00
Harshavardhana
cbc9d96d50
Format help for all commands
2015-08-25 20:13:50 -07:00
Harshavardhana
c48a98de62
Add proper comments.
2015-08-25 16:54:55 -07:00
Harshavardhana
5ffc13a4a1
Add checkDiffSyntax() for diff command
2015-08-25 15:59:48 -07:00
Anand Babu (AB) Periasamy
831db52dcf
thread-safe typed errors
2015-08-24 12:55:11 -07:00
Harshavardhana
bd547d9084
Make sure to colorize diff types properly, also handle proper newlines
2015-08-24 11:51:57 -07:00
Anand Babu (AB) Periasamy
40ff9f1033
re-vendorize probe and simplfy typed errors
2015-08-24 04:09:18 -07:00
Harshavardhana
e895837428
Converge on diff{} to DiffMessage{}
2015-08-24 01:03:13 -07:00
Harshavardhana
3ae608a3b1
Merge pull request #1034 from harshavardhana/formatting
...
End sentences with a . for readability
2015-08-23 01:36:42 -07:00
Harshavardhana
f089dc1b68
End sentences with a . for readability
2015-08-23 01:35:32 -07:00
Harshavardhana
b9c28d588b
Fixes for json review #1
2015-08-23 01:24:04 -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
Anand Babu (AB) Periasamy
4d136c6605
diff error handling update
2015-08-22 16:48:55 -07:00
Harshavardhana
878c8e2693
Migrate to newer version of config '2'
2015-08-20 21:03:39 -07:00