Custom Console Commands for OTOBO - intended to make their way into standard or die in silence.
Go to file
2023-10-10 18:56:37 +02:00
Custom/Kernel/System Added CustomerUser List command (caution, WIP). 2023-05-27 18:30:55 +02:00
Kernel/System/Console/Command/Admin Differentiated between options and arguments in dynamic field add command. 2023-10-10 18:56:37 +02:00
.drone.yml Trial and error pipeline. 2023-06-28 20:28:16 +02:00
.gitignore Initial commit 2023-05-26 16:18:47 +02:00
ConsoleCommands.sopm Added sopm file in case installation as a package is wanted. 2023-05-28 14:17:19 +02:00
README.md Added reading from STDIN to DynamicField::Add, which enables piping config. 2023-05-28 18:18:26 +02:00

consolecommands

Custom Console Commands for OTOBO - intended to make their way into standard or die in silence.

For convenience, I will try to provide example calls for commands. Feel free to suggest usability improvements or to introduce them yourselves.

~$ bin/otobo.Console.pl Admin::DynamicField::Add --name YourFieldName --label SomeLabel --valid 1 --object-type YourObjectType --field-type YourFieldType --config '---
DefaultValue: 'SomeDefaultValue'
Link: 'https://some.url.org'
LinkPreview: 'https://some.url.org/preview'
RegExList:
- ErrorMessage: 'some meaningful error message'
  Value: '\d+'
- ErrorMessage: 'some other meaningful error message'
  Value: '\w+'
Tooltip: 'Some helpful tooltip'
'
~$ mariadb -u otobo -p --execute="SELECT config FROM otobo.dynamic_field WHERE name = 'YourFieldName';" --silent --raw | bin/otobo.Console.pl Admin::DynamicField::Add --name YourNewFieldName --label SomeLabel --valid 1 --object-type YourObjectType --field-type YourFieldType --stdin

Currently included are the following commands:

  • Kernel/System/Console/Command/Admin/DynamicField/Add.pm
  • Kernel/System/Console/Command/Admin/CustomerUser/List.pm