... | ... | @@ -24,16 +24,21 @@ Tools should be added to a new subdirectory in `ifs/tools/`. |
|
|
"parseCmd": "", // A command to parse extra data if needed, else leave blank
|
|
|
"defaultArg": "-a", // The command line arguments the tool should always run with
|
|
|
"fileArgs": "--infile", // The command line argument that specifies a file (if necessary)
|
|
|
"options" : [ { // An array of options, that will be displayed in the UI
|
|
|
"displayName": "Option 1", // The user-friendly name of the option to be passed to the tool
|
|
|
"type": "select", // Menu input type, can be "select", or "checkbox"
|
|
|
"values": [ "en_US", "en_GB"], // Array of selectable values, in case of select input type
|
|
|
"name": "dictionary", // The name the option should use in the HTML form
|
|
|
"arg": "-d", // The command line argument that should be specified if the user enables it in the UI
|
|
|
"options" : [ // An array of options, that will be displayed in the UI
|
|
|
{
|
|
|
"displayName": "Parameter 1", // The user-friendly name of the option to be passed to the tool
|
|
|
"type": "select", // Form input type, can be "select", or "checkbox"
|
|
|
"values": [ "value1", "value2"], // Array of selectable values, in case of select input type
|
|
|
"name": "tool-select-name", // The unique name the option should be referenced by in the HTML form
|
|
|
"arg": "--arg1", // The command line argument that should be specified if the user enables it in the UI
|
|
|
"params": "" // Parameters is build up with all the arguments and values
|
|
|
},
|
|
|
{
|
|
|
// more than one option object may be specified
|
|
|
{ // More than one option object may be specified
|
|
|
"displayName": "Parameter 2",
|
|
|
"type": "checkbox", // Checkbox state will toggle the following argument
|
|
|
"name": "tool-checkbox-name",
|
|
|
"arg": "--use-this-flag", // This argument will only be passed if the checkbox is checked
|
|
|
"params": ""
|
|
|
}
|
|
|
],
|
|
|
}
|
... | ... | |