1
0
mirror of https://github.com/minio/mc.git synced 2025-11-12 01:02:26 +03:00
Commit Graph

45 Commits

Author SHA1 Message Date
Harshavardhana
f85e8827e1 Migrate mc package to minio-xl from minio/minio repo for probe/quick 2015-10-17 00:24:14 -07:00
Harshavardhana
67d6a47746 Avoid pointer reference of immutable methods 2015-10-02 17:51:44 -07:00
Krishna Srinivas
2b0276bd6c rename newSID to randomID 2015-09-30 01:03:11 -07:00
Harshavardhana
15cf02643d Do not default to saving session on errors, instead save session for specific errors 2015-09-29 14:23:25 -07:00
Harshavardhana
21eb2e4f93 Revert "file.Write() can be used directly instead of file.File.Write()"
This reverts commit 78f58eaa62.
2015-09-28 14:15:21 -07:00
Harshavardhana
78f58eaa62 file.Write() can be used directly instead of file.File.Write() 2015-09-28 14:11:54 -07:00
Harshavardhana
1e346fc118 Print friendly message rather than fatalIf and exit cleanly. 2015-09-25 20:52:16 -07:00
Krishna Srinivas
28ee8e56a5 Avoid syncing session datafile when there is no change to the datafile 2015-09-25 19:41: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
1ce6f7cbc7 Close session pro-actively during clear all session 2015-08-25 14:21:33 -07:00
Anand Babu (AB) Periasamy
831db52dcf thread-safe typed errors 2015-08-24 12:55:11 -07:00
Harshavardhana
a06a926b66 Move coloring to their own main* functions 2015-08-24 12:12:25 -07:00
Anand Babu (AB) Periasamy
40ff9f1033 re-vendorize probe and simplfy typed errors 2015-08-24 04:09:18 -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
Anand Babu (AB) Periasamy
1c313ef773 final update and tiny fixes 2015-08-22 22:31:15 -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
7d624457b0 updated error messages 2015-08-21 17:47:45 -07:00
Harshavardhana
dfd1b29d5f Improve error messages 2015-08-20 17:22:38 -07:00
Harshavardhana
192518d679 Add new version command 2015-08-13 20:50:32 -07:00
Harshavardhana
b743f88353 Move quick to server and vendorize it 2015-08-13 16:38:24 -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
413ce3995e Simplify and enhance error strings 2015-08-12 01:05:02 -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
e7dab5f1cf Migrating from iodine to probe 2015-08-03 11:04:34 -07:00
Harshavardhana
16fdb569c9 Add copy and cast limited tests 2015-07-27 15:25:34 -07:00
Harshavardhana
4eb519fa6c Autogenerate config, for the first time no more config generate 2015-07-26 00:24:08 -07:00
Harshavardhana
c253ad76a8 Fix session delete bug in doCopy and doCast session 2015-07-25 21:02:03 -07:00
Harshavardhana
e1c77841a7 Fix a windows bug, also rename Remove to Delete 2015-07-25 20:42:15 -07:00
Harshavardhana
04fbff76a9 Add Remove() method for session, Close() becomes the new Save() 2015-07-25 19:56:38 -07:00
Harshavardhana
322bba2353 Add session context tests 2015-07-24 22:13:04 -07:00
Harshavardhana
1afc92cb49 Add cast syntax check logic
-- TypeA for both cast and copy targetURL check shouldn't fail it it doesn't exist
   such is a common occurrence of not having a target, instead we verify if it exists
   is it a directory?
-- Rename all 'directory' references to folder
2015-07-24 14:43:47 -07:00
Harshavardhana
2e23ca3ce9 Add migration code for migrating from config version 1.0.0 to 1.0.1 2015-07-23 14:32:21 -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
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
3414a0fd3b Remove cp and sync tests for now, bring them back with console.Test, additionally close DataFP inside session.Close() 2015-07-14 16:43:32 -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
Harshavardhana
25237c4e20 Remove InfoMessage structs, we don't need to add this as API handling for json 2015-07-13 09:40:29 -07:00
Harshavardhana
7c7981658b Cosmetic changes for cmd cp 2015-07-13 09:33:08 -07:00
Anand Babu (AB) Periasamy
6dcd73551c Session V2 implementation for copy and sync 2015-07-12 20:47:49 -07:00