luz/clitool 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

luz/clitool

最新稳定版本:v1.1.0

Composer 安装命令:

composer require luz/clitool

包简介

A CLI-tool for creating predefined code in Anax-MVC.

README 文档

README

Build Status Scrutinizer Code Quality Code Coverage

A few classes making up a simple CLI-tool for Anax-MVC. Presently it supports the creation of some predefined files:

  1. Controller - model without inheritance in Anax/app/src.
  2. Controller - model without inheritance in Anax/src/.
  3. Controller - model with inheritance in Anax/app/src.
  4. Controller - model with inheritance in Anax/src.

Before creating any files it checks that the choosen filename isn't in use. If the choice is 3 or 4 the default parent is Anax\MVC\CDatabaseModel. The tool checks for it's existance and offers an opportunity to use it or enter a new one.

Intallation/Usage

Copy clitool.php to your Anax-MVC/webroot-folder. Navigate to that folder in a terminal-window and type ./clitool.php and follow the instructions. If you get "permission denied" when trying for the first time execute this command: php chmod +x clitool.php. You can also test the tool in the vendor/luz/clitool/webroot-folder and have a look att the created files. It will create folders and files in vendor/luz/clitool/ which have the same structure as Anax-MVC.

The filecontent is generated in CCliCreateContent.php and can be easily edited as long as you don't mess with the variables.

License

This software is free software and carries a MIT license.

History

v1.1.0 (2015-11-16)

  • Refactored for easier testing.
  • The finished version for kmom06.

v1.0.4 - v1.0.10 (2015-11-04)

  • Fixes for Scrutinizer.
  • Started refactoring to make it easier to test.

v1.0.3 (2015-11-03)

  • Scrutinizer added with a depressing result.

v1.0.2 (2015-11-03)

  • Starting to add tests.

v1.0 (2015-10-31)

  • Final version for kmom05.
  • Cleaning out some out-commented code.

v0.2.4 (2015-10-31)

  • Refactored to use the Anax-installations config.php for paths.
  • Editorial fixes.

v0.2.3 (2015-10-30)

  • Test-version.

v0.2.2 (2015-10-30)

  • Bugfixes.

v0.2.1 (2015-10-29)

  • Translated to english.
  • Refactored out some code in CCliRunner.php.
  • Updated controllerTemplate.php with more predefined code.
  • Controller - model with inheritance added.
  • Composer.json edited.

v0.2.0 (2015-10-27)

  • Bug fixed. Now fully functional locally and on BTH's server.
  • Repository cleaned from created files.

v0.1.4-5 (2015-10-27)

  • Bugfixing.

v0.1.3 (2015-10-27)

  • Editorial fixes.

v0.1.2 (2015-10-27)

  • Edited README.md and tested packagist's auto-update.

v0.1.1 (2015-10-27)

  • Added composer.json.

v0.1 (2015-10-26)

  • Initial upload in a new repository.

Copyright (c) 2015 Anders Lütz, me@antz.se

统计信息

  • 总下载量: 154
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-27