• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ctxswitch / kafkat / 19 / 1
62%
master: 66%

Build:
Build:
LAST BUILD BRANCH: new_gem
DEFAULT BRANCH: master
Ran 18 Jun 2019 03:20PM UTC
Files 19
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Jun 2019 02:59PM UTC coverage: 33.393%. First build
2.4.5

push

travis-ci

ctxswitch
New command structure

This is the initial commit of the new command structure outlined in
issue #4.  There were major changes to the cli and command base
structures to accomidate the new changes.  Optimist was removed in favor
of mixlib-cli and mixlib-config was added to add some additional
structure around the configuration file and set us up for a bit more
complexity in the structure as we look forward to context setup.

A side effect of adding in mixlib-config was that configuration files are
parsible in either json, yaml, or toml.  I should actually lock that
down to a single type, but at this time I'd like the flexibility to play
around with different formats.  There is a breaking change in that the
config files have been renamed and are checked and loaded in this order:

```
.kafkat.json
.kafkat.yml
~/.kafkat.json
~/.kafkat.yml
/etc/kafkat/config.json
/etc/kafkat/config.yml
```

There were many of the common base interfaces that were moved forward
with minor tweaks, but the addition of mixlib-cli required a new way to
load, list, and interact with the commands.  I've modeled the
interaction after knife (and other ops tooling) which allows you to
list all of the commands and then dive into the individual help sections
to see what the commands actually do and any specific configurations
settings that are specific to the module.

The base command class now defines several global options that each of
the commands inherit.  Among them are configuration overrides that are
merged into the configuration after the file is loaded.

There is some additional refactoring that needs to take place to
decouple utilities that are specific to commands, and place them back
into their appropriate commands, but that will come one by one as we
start preping for the ability to create local commands that can be
loaded in at runtime.

186 of 557 relevant lines covered (33.39%)

0.33 hits per line

Source Files on job 19.1 (2.4.5)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 8
  • Travis Job 19.1
  • 58b3bc1c on github
  • Next Job for 2.4.5 on issue_4 (#21.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc