-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.py
executable file
·44 lines (32 loc) · 926 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from src.license_generator import LicenseGenerator
from src.options_dictionaries import (
get_batch_license_dict,
get_file_options_dict,
get_license_characteristics_dict,
)
def main():
print()
print_header("File Options")
file_options_dict = get_file_options_dict()
print()
print_header("Batch Options")
batch_license_dict = get_batch_license_dict()
print()
print_header("License Characteristics Options")
license_characteristics_dict = get_license_characteristics_dict(
batch_license_dict["license_separator_character"]
)
print()
print_header("Results")
LicenseGenerator(
file_options_dict,
batch_license_dict,
license_characteristics_dict,
).generate()
print()
def print_header(header):
print(header)
separator_line = "=" * len(header)
print(separator_line)
if __name__ == "__main__":
main()