luz/clitool

This package is abandoned and no longer maintained. No replacement package was suggested.

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

Installs: 154

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:HTML

pkg:composer/luz/clitool

v1.1.0 2015-11-16 20:07 UTC

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