|
1 | | -from typing import Dict |
2 | | - |
3 | | - |
4 | | -def YourScriptMethod(inputs: Dict[str, str]) -> Dict[str, str]: |
5 | | - """ |
6 | | - The main function for your script. |
7 | | -
|
8 | | - :param inputs: An object representing the input parameters passed to the script. |
9 | | - :type inputs: dict[str, str] |
10 | | - :return: An object representing the output parameters returned by the script. |
11 | | - :rtype: dict[str, str] |
12 | | - """ |
13 | | - |
14 | | - # Retrieve your input parameters from process.argv after parser |
15 | | - outputs: Dict[str, str] = {} |
16 | | - for key, value in inputs.items(): |
17 | | - outputs[key] = value |
18 | | - |
19 | | - # Other tasks for your script can be performed here |
20 | | - # ... |
21 | | - |
22 | | - # Return your output parameters to the caller |
23 | | - return outputs |
| 1 | +# Copyright (c) Laserfiche. |
| 2 | +# Licensed under the MIT License. See LICENSE in the project root for license information. |
| 3 | + |
| 4 | +from typing import Dict |
| 5 | + |
| 6 | + |
| 7 | +def YourScriptMethod(inputs: Dict[str, str]) -> Dict[str, str]: |
| 8 | + """ |
| 9 | + The main function for your script. |
| 10 | +
|
| 11 | + :param inputs: An object representing the input parameters passed to the script. |
| 12 | + :type inputs: dict[str, str] |
| 13 | + :return: An object representing the output parameters returned by the script. |
| 14 | + :rtype: dict[str, str] |
| 15 | + """ |
| 16 | + |
| 17 | + # Retrieve your input parameters from process.argv after parser |
| 18 | + outputs: Dict[str, str] = {} |
| 19 | + for key, value in inputs.items(): |
| 20 | + outputs[key] = value |
| 21 | + |
| 22 | + # Other tasks for your script can be performed here |
| 23 | + # ... |
| 24 | + |
| 25 | + # Return your output parameters to the caller |
| 26 | + return outputs |
0 commit comments