refactor commands
Merge pull request #4 from sequenceiq/refactor

refactor commands