2023-05-26 16:18:47 +02:00
|
|
|
# consolecommands
|
|
|
|
Custom Console Commands for OTOBO - intended to make their way into standard or die in silence.
|
2023-05-28 14:10:59 +02:00
|
|
|
|
2023-05-28 18:18:26 +02:00
|
|
|
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
|
|
|
|
```
|
|
|
|
|
2023-05-28 14:10:59 +02:00
|
|
|
Currently included are the following commands:
|
2023-05-28 14:25:25 +02:00
|
|
|
- Kernel/System/Console/Command/Admin/DynamicField/Add.pm
|
|
|
|
- Kernel/System/Console/Command/Admin/CustomerUser/List.pm
|