diff options
author | Sjur Fredriksen <sjur@sjurtf.net> | 2025-04-22 22:54:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-22 22:54:29 +0200 |
commit | 7111f02967a18740f23fb00b56ec9012d2173020 (patch) | |
tree | 68175a1a7490b19338543add1e644bafab786ca8 /tech-support/labels/planning_output.py | |
parent | d98b28fb005d6c379299175a3aedc15f56cfa925 (diff) | |
parent | 9b7d6fe5be6a68a4954a5f02c877d47086663d39 (diff) |
feat: Support reading from (planning output) file
Diffstat (limited to 'tech-support/labels/planning_output.py')
-rw-r--r-- | tech-support/labels/planning_output.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tech-support/labels/planning_output.py b/tech-support/labels/planning_output.py new file mode 100644 index 0000000..934dc83 --- /dev/null +++ b/tech-support/labels/planning_output.py @@ -0,0 +1,14 @@ +from gondul import _match_switches +from gondul import _sort_switches + +def read_planning_switches(path, match=None): + lines = None + with open(path) as f: + lines = f.readlines() + + switches = [] + for line in lines: + switches.append(line.split(" ")[0]) + + switches = _match_switches(switches, match=match) + return _sort_switches(switches) |