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

85 Commits

Author SHA1 Message Date
Harshavardhana
e978c71b7c Add staticcheck based builds (#2788)
Additionally this PR also supports
multi-platform builds to avoid cross
platform build issues.
2019-06-03 11:22:31 -07:00
ebozduman
83a9d8b91d Adds missing codebase MinIO and min.io changes (#2745) 2019-04-16 22:31:54 -07:00
Harshavardhana
55f06077e5 Fix heal admin API to honor json/quiet flags correctly (#2370)
Update the madmin updated package as well

Fixes #2369
Fixes #2368
Fixes #2367
2018-01-27 23:19:52 +05:30
Aditya Manthramurthy
793cda2ca0 New Admin API client-side implementation (#2350) 2018-01-23 12:32:58 -08:00
Super-User
5219fd59e8 porting: mc now properly works on solaris.
Fixes #1603
2016-02-15 15:03:40 -08:00
Harshavardhana
f94399b01c console: Print in Debug when DebugPrint set to true. 2015-11-25 01:22:17 -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
Harshavardhana
3f52c951e7 testing: Remove all the console IsExited/IsError testing. 2015-11-21 17:55:42 -08:00
Anand Babu (AB) Periasamy
052f73f348 restructure globals and some bug fixes related to globals 2015-11-21 12:43:21 -08:00
Harshavardhana
2419ca9c4d console: Avoid printing tags for null inputs Fatalln, Errorln, Debugln.
- fixes #1362
2015-11-17 15:04:02 -08:00
Anand Babu (AB) Periasamy
fb39bcba80 handle non-existant color calls 2015-11-14 20:39:23 -08:00
Anand Babu (AB) Periasamy
970927cc6b simplify setting console theme 2015-11-10 16:45:32 -08: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
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
Anis ELLEUCH
14572a7aa5 Factor out repetitive fatal and error quit routines 2015-09-29 19:31:43 +01: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
ee65cf7ab8 Fix bugs related to cp, mirror code argument validation 2015-09-29 00:17:16 -07:00
Harshavardhana
c60d2ac8d7 Fix golint complaints 2015-09-17 18:58:19 -07:00
Anand Babu (AB) Periasamy
3a9b2064f6 separate mutex for internal and external locking 2015-09-09 22:21:06 -07:00
Harshavardhana
0dda19490e Add nocolor flag to disable coloring if necessary proactively 2015-08-26 12:34:08 -07:00
Harshavardhana
a06a926b66 Move coloring to their own main* functions 2015-08-24 12:12:25 -07:00
Harshavardhana
a0e66ce640 Migrate to golang1.5 with new GO15VENDOREXPERIMENT enabled 2015-08-22 19:04:17 -07:00
Harshavardhana
dfe5541f04 update AB's contributors email 2015-08-20 16:16:17 -07:00
Harshavardhana
cf5290ad74 Merge themes as settable from outside console, add a default theme as well. 2015-08-19 22:59:05 -07:00
Harshavardhana
60a29bae96 Remove json indent for easing parsing
Indentation while it is nice, leads to issues when parsing where delimiters on
readline() will fail since we are sending many self contained json's in a streaming
fashion, having a proper readline() based delimiter is helpful in terms of parsing.
2015-08-19 02:38:09 -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
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
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