Skip to content

SerenaFeng/cliff-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cliff Generator

This tool is developed to generate a cli project leveraging cliff

Config File

The items and syntax in config file would be:

# must be provided
project: cliffg-example

# if not provided, empty
summary: A project to test cliff-generator

# if not provided, empty
author: SerenaFeng

# if not provided, empty
author-email: serena.feng.711@gmail.com

# if not provided, leverage https://github.com/{author}/{project}
home-page: https://github.com/SerenaFeng/cliffg-example

# if not provide, substitute - with _ in {project}
#package: cliffg_example

# if not provide, leverage {project} directly
#cli: cliffg-example

subs:
  sub1: [create, show, list, delete]
  sub2: [create, update, show]

# support communicating with other components using RESTful API
use_rest: False

Usage

cliffg -rm -o ~/ <conf_file>

-rm: whether to remove existed project directory or not

-o: the output directory, './' by default

conf_file: config file path, the config file must be a yaml file, such as ./conf.yaml

An example please reference cliffg-example

About

A tool to generate a CLI project using cliff

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages