ansible / mazer

Experimental Ansible Galaxy Content Manager
GNU General Public License v3.0
114 stars 18 forks source link

Mv cli 'version' logic to ansible_galaxy.action.version #94

Closed alikins closed 6 years ago

alikins commented 6 years ago
SUMMARY

Mv cli 'version' logic to ansible_galaxy.action.version

Update the version format to look more like the 'ansible --version' output.

Add unit tests.

a little overkill after I noticed the 'mazer version' output had a line like

Ansible Galaxy CLI, version0.1.0

New format is also slightly easier to parse for something like the issue triage bots

ISSUE TYPE
GALAXY CLI VERSION
name = mazer
version = 0.1.0
config_file = /home/adrian/.ansible/mazer.yml
uname = Linux, newswoop, 4.16.6-202.fc27.x86_64, #1 SMP Wed May 2 00:09:32 UTC 2018, x86_64
executable_location = /home/adrian/venvs/galaxy-cli-py3/bin/mazer
python_version = 3.6.5 (default, Apr  4 2018, 15:01:18) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]
python_executable = /home/adrian/venvs/galaxy-cli-py3/bin/python
ADDITIONAL INFORMATION