add --version flag to kyt-cli
Add a flag to kyt-cli that returns the current version from package.json and exits 0. Should probably be -v and --version. Originally came up in #490.
Bug or Feature?
Feature
Mind if I take this one? @jaredmcdonald
all yours, @blakeyoder! thanks
@jaredmcdonald Quick question on this one. I've noticed that if I run a command such as kyt-cli list then the output starts with the version of yarn that is installed - maybe it has something to do with the symlink at setup?
For example,
kyt-cli list - notice the yarn version at the top

This shows up with the command I wrote
kyt-cli version - yarn version first then app version second

I wanted to see if this is happening on your build? I might have just setup something wrong...Thanks!
This is also happening in my build @blakeyoder I haven't dug into why yet, but we are seeing it too so you're set up correctly!
the yarn version you were seeing is from https://github.com/NYTimes/kyt/blob/78986e60aa5021a2332d741612292f7d327f5570/packages/kyt-cli/utils/yarnOrNpm.js#L4-L6
To hide the yarn version from kyt-cli commands, something like
const isYarnInstalled = () => shell.exec('[ -x "$(command -v yarn)" ]').code === 0;
could work