Перейти к содержанию
IPS Invision Community 🇷🇺

Рекомендуемые сообщения

Power Tools


Power Tools is a third party command line utility for Invision Power Suite developers. It aims to aid in development by packaging several useful command line script and applications together in one easy to use application.

 Found this useful? Want to support further development? Show your support by buying me a coffee!
https://ko-fi.com/makoto_dev

Installation

If you are on Linux, there is an optional executable included in the release package which you can extract and copy to /usr/local/bin for convenience.

Otherwise, just extract the included ptools.phar file to the directory of your IPS installation. Then, from your terminal window, navigate to the applications directory and run ptools.phar as you would any other PHP script from the command line,

$ php ptools.phar 
Power Tools version 1.0.1

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  classmap                  Generate a map of error codes for classes in an IPS application
  help                      Displays help for a command
  list                      Lists commands
  tinker                    Launches an interactive shell interpreter for an IPS installation
 generate
  generate:activerecord     Generates an Active Record boilerplate class
  generate:content-comment  Generates a Content Comment boilerplate class
  generate:content-item     Generates a Content Item boilerplate class
  generate:content-node     Generates a Content Node boilerplate class
 proxy
  proxy:regen               (Re)generates all proxy classes for the application

Features

Tinker

Tinker is one of Power Tools most.. well, powerful features! The name tinker was inspired by Laravel's own "tinker" command, and it essentially operates in the same manner.

Both are powered by PsySH, an application that provides an extremely powerful PHP REPL for your applications.

Stop making your life difficult by executing arbitrary code in random modules for testing, or worse yet, actually trying to use the native PHP CLI interpreter.


 

Ссылка на комментарий

Создайте учетную запись или войдите, чтобы комментировать

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!

Зарегистрировать аккаунт

Войти

Уже зарегистрированы? Войдите здесь.

Войти
×
×
  • Создать...

Важная информация

Мы используем файлы cookie и другие средства сохранения предпочтений и анализа действий посетителей сайта. Нажмите «Принять», если даете согласие на это. Политика конфиденциальности - Условия использования

Вверх
Вверх