myCLI is both a library for creating your own CLI easily of your project.
myCLI is a library providing a simple CLI create your own based in YAML.
myCLI provides:
- Easy Setup.
- Easy generation files
- Prefix files name
- Suffix files name
- Initial template
myCLI is builded using cobra
myCli is built based on a YAML file.
project:
extension: php
modules:
model:
description: "create class models"
path: "models/"
prefix: ""
suffix: "_model"
template: "templates/start.ph2p"
controllers:
command: ctl
description: "create class controller"
path: "controllers/"
prefix: ""
suffix: "_controller"
extension
: the files created will be with this extension.modules
: are the CLI commands
commands
model:
command: mdl
description: "create class models"
path: "models/"
prefix: ""
suffix: "_model"
template: "templates/start.ph2p"
model
: by default the command name is the structure name, in this case model.command
: customize command name in CLI.description
: command description.path
: path where files will be created.prefix
: the prefix will be added to the name of the created example file: prefix_filename.phpsuffix
: the suffix will be added to the name of the created example file: filename_suffix.phptemplate
: You can define an initial template for when the file is created
coming soon
coming soon
myCLI is released MIT license. See LICENSE.txt