Skip to content

Commit

Permalink
add copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
kern-ding committed Oct 16, 2023
1 parent f9c4454 commit 9a5c765
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 23 deletions.
4 changes: 4 additions & 0 deletions source/template/launcher.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env python3

# Copyright (c) Laserfiche.
# Licensed under the MIT License. See LICENSE in the project root for license information.

import sys

from utility.lf_arg_parser.src.lf_arg_parser import get_argument_map
Expand Down
49 changes: 26 additions & 23 deletions source/template/src/mirror.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
from typing import Dict


def YourScriptMethod(inputs: Dict[str, str]) -> Dict[str, str]:
"""
The main function for your script.
:param inputs: An object representing the input parameters passed to the script.
:type inputs: dict[str, str]
:return: An object representing the output parameters returned by the script.
:rtype: dict[str, str]
"""

# Retrieve your input parameters from process.argv after parser
outputs: Dict[str, str] = {}
for key, value in inputs.items():
outputs[key] = value

# Other tasks for your script can be performed here
# ...

# Return your output parameters to the caller
return outputs
# Copyright (c) Laserfiche.
# Licensed under the MIT License. See LICENSE in the project root for license information.

from typing import Dict


def YourScriptMethod(inputs: Dict[str, str]) -> Dict[str, str]:
"""
The main function for your script.
:param inputs: An object representing the input parameters passed to the script.
:type inputs: dict[str, str]
:return: An object representing the output parameters returned by the script.
:rtype: dict[str, str]
"""

# Retrieve your input parameters from process.argv after parser
outputs: Dict[str, str] = {}
for key, value in inputs.items():
outputs[key] = value

# Other tasks for your script can be performed here
# ...

# Return your output parameters to the caller
return outputs
3 changes: 3 additions & 0 deletions source/template/test/test_mirror.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Laserfiche.
# Licensed under the MIT License. See LICENSE in the project root for license information.

import pytest
from ..src.mirror import YourScriptMethod

Expand Down
3 changes: 3 additions & 0 deletions source/word_translator/launcher.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env python3

# Copyright (c) Laserfiche.
# Licensed under the MIT License. See LICENSE in the project root for license information.

import sys

from utility.lf_arg_parser.src.lf_arg_parser import get_argument_map
Expand Down
3 changes: 3 additions & 0 deletions source/word_translator/src/translator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Laserfiche.
# Licensed under the MIT License. See LICENSE in the project root for license information.

from translate import Translator


Expand Down
3 changes: 3 additions & 0 deletions source/word_translator/test/test_translator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Laserfiche.
# Licensed under the MIT License. See LICENSE in the project root for license information.

import pytest
from ..src.translator import translate

Expand Down
3 changes: 3 additions & 0 deletions utility/lf_arg_parser/src/lf_arg_parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Laserfiche.
# Licensed under the MIT License. See LICENSE in the project root for license information.

import sys


Expand Down
3 changes: 3 additions & 0 deletions utility/lf_arg_parser/test/test_lf_arg_parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (c) Laserfiche.
# Licensed under the MIT License. See LICENSE in the project root for license information.

import pytest
from ..src.lf_arg_parser import get_argument_map

Expand Down

0 comments on commit 9a5c765

Please sign in to comment.