Skip to content

zakzhu/cmd-edison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cmd-Edison

gitter room license release prs welcome

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]

Requirements

  • Platforms:
    • CentOS-7
    • CentOS-8
    • Fedora
    • MacOS
    • Ubuntu
  • Dependencies:
    • Python >= 3.7
    • PyYAML >= 5.1.2

Installation

git clone https://github.com/zakzhu/cmd-edison.git
cd cmd-edison
pip3 install -r requirements.txt

Usage

  1. Copy your playbook to directory playbook/

NOTE: The main playbook should be named site.yml !

cp Your-Playbook playbook/
  1. Edit config flag.yml
vim flag.yml

Examples

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.

Thanks

The following excellent people helped massively:

License

Cmd-Edison is licensed under the BSD-3-Clause license. Copyright © 2020, Zak Zhu