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

38 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
Anand Babu (AB) Periasamy
636f243dcc target2client and source2client methods are not necessary 2015-10-11 03:07:47 -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
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
Harshavardhana
45be233d23 Enable get/set for access command 2015-09-01 11:19:36 -07:00
Harshavardhana
53fc1c7b38 Disable ACL's for filesystem as it doesn't bring any direct meaning 2015-09-01 10:47:52 -07:00
Anand Babu (AB) Periasamy
fddcb821fa URL related bug fixes and cleanup 2015-08-30 02:14:24 -07:00
Harshavardhana
f831d94d3f Revert "Change ACL to Access"
This reverts commit 68b3b0aac2.

Revert "Object ACL now propagates through ACL config, update minio-go library to bing in SetObjectACL() support"

This reverts commit 6816542c7a.
2015-08-28 22:37:10 -07:00
Harshavardhana
68b3b0aac2 Change ACL to Access 2015-08-28 21:35:07 -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
57658835b8 Move from acl to access-perms 2015-08-25 16:41:12 -07:00
Harshavardhana
cb0f5a5b19 Updates now handle release and experimental updates
- add checkUpdateSyntax and also add json output for update messages
- additionally this commit also includes error Container for consistent outputs
  in case of errors, very handy to write scripts around

   ```bash
    $ mc --json ls test | jq .error
    null
    null
    { error }
    null
    ...
    ```
2015-08-25 00:26:23 -07:00
Harshavardhana
3df07ac29f Add checkCommandSyntax for all commands 2015-08-24 19:31:30 -07:00
Anand Babu (AB) Periasamy
831db52dcf thread-safe typed errors 2015-08-24 12:55:11 -07:00
Anand Babu (AB) Periasamy
40ff9f1033 re-vendorize probe and simplfy typed errors 2015-08-24 04:09:18 -07:00
Harshavardhana
f089dc1b68 End sentences with a . for readability 2015-08-23 01:35:32 -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
Anand Babu (AB) Periasamy
754dc8849e probe update and access command error messages update 2015-08-19 23:22:39 -07:00
Harshavardhana
fa0c9e38bb Add error messages to fatalIf and errorIf 2015-08-19 17:11:34 -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
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
e6fd52f026 Rename ifFatal and ifError as Fatal, Error 2015-08-03 22:19:45 -07:00
Harshavardhana
e7dab5f1cf Migrating from iodine to probe 2015-08-03 11:04:34 -07:00
Harshavardhana
4eb519fa6c Autogenerate config, for the first time no more config generate 2015-07-26 00:24:08 -07:00
Harshavardhana
5af70f5e49 Rename product to new convention 2015-07-24 18:23:12 -07:00
Harshavardhana
8335d9cbcf Rename cmd-* into <command>-main.go 2015-07-22 23:27:06 -07:00