View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
16092Feature requestsOtherpublic2020-04-04 11:01
Reporteruser163119Assigned To 
PrioritynoneSeverityfeature 
Status newResolutionopen 
Summary16092: add new commands folder for own Console Commands
Description

current method:
a plugin subscribes to the direct plugin event and is executable in console via
php application/commands/console.php plugin direct --target=Reminder

new method:
create a console command in new folder (other than application/commands), eg commands
$app->commandRunner->addCommands(dirname(dirname(dirname(__FILE__))) . '/commands');

and execute the command via
php application/commands/console.php reminder

TagsNo tags attached.
Bug heat4
Users affected %

Users monitoring this issue

There are no users monitoring this issue.

Activities

user163119

2020-04-04 00:57

  ~56940

also add a shortcut ./lsc (limesurvey console)

#!/bin/bash
php ./application/commands/console.php $@

so we can call ./lsc reminder

user163119

2020-04-04 02:31

  ~56941

ups, this is a duplicate to https://bugs.limesurvey.org/view.php?id=15970

DenisChenu

DenisChenu

2020-04-04 11:01

developer   ~56944

Possible security issue ?

Must check all include are in allowed directory.

Else : except remogving plugin direct --target= what gain ?

On linux, a simple alias and no need ;)

Issue History

Date Modified Username Field Change
2020-04-04 00:55 user163119 New Issue
2020-04-04 00:57 user163119 Note Added: 56940
2020-04-04 02:31 user163119 Note Added: 56941
2020-04-04 11:01 DenisChenu Note Added: 56944