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

47 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
26cb1e7ae3 Add new accounting reader fixes #1162
Just like how a progress bar keeps track of data transfer
and average speed. Accounting reader implements similar
functionalities for calculating average speed, total transferred.

This accounting information is printed at the end of the copy or mirror
operation in quiet mode.
2015-10-09 12:29:13 -07: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
87aadd20ec Improve mirror error message 2015-10-06 11:12:16 -07:00
Harshavardhana
f86efb7c36 Fix a segfault in mc for progress bar theme init 2015-09-30 12:36: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
6781591143 Rename newCpBar to newProgressBar, move setting console color for progress outside of console 2015-09-29 10:47:19 -07:00
Harshavardhana
c9f2cf97bb Fix hang cp and mirror hang in --quiet and --json modes upon error 2015-09-29 00:32:07 -07:00
Harshavardhana
ee65cf7ab8 Fix bugs related to cp, mirror code argument validation 2015-09-29 00:17:16 -07:00
Harshavardhana
fe9f1b9032 Do not exit for common filesystem errors - for cp, mirror
- Broken Symlink
  - No Such file or directory, Permission Denied
  - Ignore broken directory symlinks
2015-09-28 14:29:36 -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
Anand Babu (AB) Periasamy
dc3a647dfe flicker free scanbar 2015-09-22 04:10:48 -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
aaec806897 Simplify help messages 2015-09-01 14:54:13 -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
1e67db0aef Handle errors and clearing previous outputs - json output shouldn't have colors 2015-08-24 17:17:11 -07:00
Harshavardhana
bd547d9084 Make sure to colorize diff types properly, also handle proper newlines 2015-08-24 11:51:57 -07:00
Harshavardhana
f089dc1b68 End sentences with a . for readability 2015-08-23 01:35:32 -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
b10d2648e8 second update to error messages 2015-08-22 02:14:00 -07:00
Harshavardhana
fa0c9e38bb Add error messages to fatalIf and errorIf 2015-08-19 17:11:34 -07:00
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
6a59d9a046 Rename all main command actions into main<Command> from run<Command>Cmd 2015-08-12 01:26:35 -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
ae2a20dffc Move from Fatal/Error to fatalIf/errorIf 2015-08-09 22:41:49 -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
e6fd52f026 Rename ifFatal and ifError as Fatal, Error 2015-08-03 22:19:45 -07:00
Harshavardhana
9ba648084e Fix more scoping issues with new probe.Error v/s error 2015-08-03 11:19:22 -07:00
Harshavardhana
e7dab5f1cf Migrating from iodine to probe 2015-08-03 11:04:34 -07:00
Harshavardhana
892c9b86a6 Default to delta calculation for mirror - all last remaining types removed 2015-07-31 15:51:15 -07:00
Harshavardhana
a700e37cf5 Change more cast to 'mirror' and fix some typos 2015-07-30 23:20:12 -07:00
Harshavardhana
fa27eb71e4 Diff now has recursive listing and matching based on patricia trie 2015-07-30 20:44:56 -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
5af70f5e49 Rename product to new convention 2015-07-24 18:23:12 -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
090554c3e2 Add cp cast guess URL type tests 2015-07-23 22:34:41 -07:00
Harshavardhana
f06456ddd1 Make copy look like cast in URL handling 2015-07-23 20:34:31 -07:00
Harshavardhana
8335d9cbcf Rename cmd-* into <command>-main.go 2015-07-22 23:27:06 -07:00