Commit Graph
44 Commits
Author SHA1 Message Date
Harshavardhana f4a00c9904 Remove usage of strings.Compare - always golangs native checks like ">, <, ==" for strings 2015-10-28 13:47:49 -07:00
Harshavardhana 1eb171544f Implement mc ls incomplete s3/bucketname 2015-10-19 22:28:34 -07:00
Harshavardhana f85e8827e1 Migrate mc package to minio-xl from minio/minio repo for probe/quick 2015-10-17 00:24:14 -07:00
Harshavardhana e03315ba44 Add cursor animate to mirror 2015-10-08 16:24:20 -07:00
Harshavardhana 0d63b236e8 Handle errors coming in through List avoid crashes 2015-10-08 16:17:37 -07:00
Harshavardhana 1f61963420 Remove diff dependency on sorted-list
Recursively filesystem is sorted by default, there is no reason to
store temporary files so that we can loop on them later.

This change does direct streaming diff - since both first and second
URL for the arguments are guaranteed to provide lexically correct output.

We can remove the necessity of creating new temporary files.
2015-10-04 11:26:16 -07:00
Harshavardhana 67d6a47746 Avoid pointer reference of immutable methods 2015-10-02 17:51:44 -07:00
Krishna Srinivas 3211d184e5 diff - dump the sorted list of source and destination to local disk file and then diff from the local files 2015-09-30 21:05:09 -07:00
Harshavardhana ee65cf7ab8 Fix bugs related to cp, mirror code argument validation 2015-09-29 00:17:16 -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
Anand Babu (AB) Periasamy 91100b72ed alias support with colon requirement 2015-08-29 18:02:32 -07:00
Anand Babu (AB) Periasamy bb3c89d844 convert remaining typed errors to probe errors 2015-08-24 22:29:50 -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 3e5178ddb2 diff should handle type and size as well in recursive diff 2015-08-24 00:02:50 -07:00
Harshavardhana b9c28d588b Fixes for json review #1 2015-08-23 01:24:04 -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 ae0f3b1474 Use DiffMessage rather than diffV1 2015-08-22 02:55:53 -07:00
Anand Babu (AB) Periasamy 154c229324 error messages update 2015-08-22 02:47:35 -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 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 b6a2e5c4af Add diff json 2015-08-04 21:41:26 -07:00
Harshavardhana e7dab5f1cf Migrating from iodine to probe 2015-08-03 11:04:34 -07:00
Harshavardhana e8a5e68e3c Fix broken diff behavior - using absolute URL's is wrong, use relative instead 2015-07-31 12:42:52 -07:00
Harshavardhana ddf5c7bccc Add cursor animation for diff command 2015-07-30 21:23:56 -07:00
Harshavardhana fa27eb71e4 Diff now has recursive listing and matching based on patricia trie 2015-07-30 20:44:56 -07:00
Harshavardhana 25ada41480 Implement NewIodine() in a simpler way 2015-07-15 18:39:17 -07:00
Harshavardhana 8fa80fbf37 Revert "Add mc top level error handling without printing stack traces."
This reverts commit ab4f64b5e3.
2015-07-15 17:25:42 -07:00
Harshavardhana ab4f64b5e3 Add mc top level error handling without printing stack traces. 2015-07-15 16:53:28 -07:00
Harshavardhana 98a5cf648b Move diff also away from prefixed url 2015-06-06 21:49:50 -07:00
Harshavardhana 0674ce8085 Command diff now properly supports recursive diff 2015-05-26 19:21:58 -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 429ff61174 Fix missing work from diff command 2015-05-22 18:40:46 -07:00
Harshavardhana d04f63c9eb Break diff into simpler functions 2015-05-21 20:40:14 -07:00
Harshavardhana fffb947e66 Fix diff handling of non-existant files from source and target 2015-05-21 20:32:29 -07:00
Harshavardhana 26fbc3bc20 Change closed brackets to quote characters and remove brackets for Reason 2015-05-20 20:51:44 -07:00
Harshavardhana bb374980eb Remove frivolous newlines from diff 2015-05-20 11:16:50 -07:00
Harshavardhana dcccafacbe Simplify listing recursively into one function, diff now supports <filename> <directory> style 2015-05-20 02:44:15 -07:00
Harshavardhana c8a60e3781 Change diff command properly to send messages over channels 2015-05-20 00:56:10 -07:00