Allow name to be passed through command line

This commit is contained in:
Jaret Burkett committed 2023-07-31 11:56:57 -06:00
1 parent 52f02d53f1
commit 7726911562
3 files changed
+20 -9

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
from toolkit.config import get_config
def get_job(config_path):
config = get_config(config_path)
def get_job(config_path, name=None):
config = get_config(config_path, name)
if not config['job']:
raise ValueError('config file is invalid. Missing "job" key')