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.
- String() for colorized output
- JSON() for json marshalled output
All messages should adhere to this interface unless its
explicitly not necessary in some cases.
- 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
...
```
- 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.
-- 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