Cmd-Edison can help you easily generate linux-style command line tools.
You only need to write an ansible playbook and set flag.yml, and then a new command is born.
[TOC]
- Platforms:
- CentOS-7
- CentOS-8
- Fedora
- MacOS
- Ubuntu
- Dependencies:
- Python >= 3.7
- PyYAML >= 5.1.2
git clone https://github.com/zakzhu/cmd-edison.git
cd cmd-edison
pip3 install -r requirements.txt
- Copy your playbook to directory playbook/
NOTE: The main playbook should be named site.yml !
cp Your-Playbook playbook/
- Edit config flag.yml
vim flag.yml
There is a sample in directory tests/. You could copy the sample files to corresponding directories.
cp tests/site.yml.sample playbook/ cp tests/flag.yml.sample flag.yml
Execute python main.py --help
, and you would see below:
Also you could test more features from this sample.
The following excellent people helped massively:
Cmd-Edison is licensed under the BSD-3-Clause license. Copyright © 2020, Zak Zhu