Custom Console Commands for OTOBO - intended to make their way into standard or die in silence.
Custom/Kernel/System | ||
Kernel/System/Console/Command/Admin | ||
.gitignore | ||
ConsoleCommands.sopm | ||
README.md |
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