Commit Graph
17 Commits
Author SHA1 Message Date
Anand Babu (AB) Periasamy 269ac7b105 global flags are replaced with command speific flags, but still retain global behavior 2015-11-21 14:20:00 -08:00
Harshavardhana 2eb9e58771 mc: Fix help flag add 'h' and update README.md 2015-11-18 19:13:13 -08:00
Anand Babu (AB) Periasamy e1763a057b show help flag for mc 2015-11-16 12:52:54 -08:00
Harshavardhana 7831917901 help: Re-write help style now each command has --help 2015-11-16 02:21:44 -08:00
Anand Babu (AB) Periasamy 970927cc6b simplify setting console theme 2015-11-10 16:45:32 -08: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 e9be0976ab when Invalid command is passed, print closest known prefix using trie structure 2015-09-14 01:40:48 -07:00
Harshavardhana 0dda19490e Add nocolor flag to disable coloring if necessary proactively 2015-08-26 12:34:08 -07:00
Harshavardhana 492340b3d8 Recursively progress along with errors if possible 2015-08-23 02:30:47 -07:00
Harshavardhana a0e66ce640 Migrate to golang1.5 with new GO15VENDOREXPERIMENT enabled 2015-08-22 19:04: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 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 abbf27ca01 Rename conf-dir to config-folder to be consistent with our naming convention regarding folders v/s directories 2015-08-12 16:17:29 -07:00
Harshavardhana 38a25410ef Rename --alias to --mimic, remove --force flag 2015-08-12 16:02:11 -07:00
Krishna Srinivas 22d7258a0e rename --config to --conf-dir and do firstTimeRun() after setMcConfigDir() 2015-08-13 02:37:35 +05:30
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 8335d9cbcf Rename cmd-* into <command>-main.go 2015-07-22 23:27:06 -07:00