workflow.core 1.11.4__tar.gz → 1.11.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {workflow_core-1.11.4 → workflow_core-1.11.6}/PKG-INFO +2 -3
- {workflow_core-1.11.4 → workflow_core-1.11.6}/pyproject.toml +1 -1
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/lifecycle/configure.py +23 -10
- {workflow_core-1.11.4 → workflow_core-1.11.6}/README.md +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/__init__.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/cli/__init__.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/cli/buckets.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/cli/configs.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/cli/main.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/cli/pipelines.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/cli/results.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/cli/run.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/cli/schedules.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/cli/workspace.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/daemons/__init__.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/daemons/audit.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/daemons/transfer.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/definitions/__init__.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/definitions/config.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/definitions/jsonschema.md +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/definitions/notify.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/definitions/work.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/definitions/workspace.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/examples/autocomplete.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/examples/function.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/examples/sample.svg +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/examples/sample.workflow.yml +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/exceptions.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/helpers/__init__.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/helpers/date.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/http/__init__.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/http/buckets.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/http/client.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/http/configs.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/http/context.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/http/pipelines.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/http/results.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/http/schedules.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/lifecycle/__init__.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/lifecycle/archive/__init__.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/lifecycle/archive/http.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/lifecycle/archive/posix.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/lifecycle/archive/s3.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/lifecycle/attempt.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/lifecycle/execute.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/utils/__init__.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/utils/decorators.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/utils/format.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/utils/logger.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/utils/prompt.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/utils/read.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/utils/renderers.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/utils/tmate.sh +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/utils/validate.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/utils/variables.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/utils/write.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/workspaces/__init__.py +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/workspaces/chimefrb.yml +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/workspaces/development.yml +0 -0
- {workflow_core-1.11.4 → workflow_core-1.11.6}/workflow/workspaces/site-dev.yml +0 -0
|
@@ -110,33 +110,46 @@ def arguments(func: Callable[..., Any], work: Work) -> List[str]:
|
|
|
110
110
|
)
|
|
111
111
|
|
|
112
112
|
if parameter_value_in_work:
|
|
113
|
-
if isinstance(parameter_value_in_work, list):
|
|
114
|
-
parameter_value_in_work = " ".join(parameter_value_in_work)
|
|
115
|
-
|
|
116
113
|
if isinstance(parameter, click.Argument):
|
|
117
114
|
# If argument, then the parameter is purely positional without a key
|
|
118
|
-
|
|
115
|
+
if isinstance(parameter_value_in_work, list):
|
|
116
|
+
for value in parameter_value_in_work:
|
|
117
|
+
args.append(f"{value}")
|
|
118
|
+
else:
|
|
119
|
+
args.append(f"{parameter_value_in_work}")
|
|
119
120
|
elif isinstance(parameter, click.Option):
|
|
120
121
|
if hasattr(parameter, "is_flag") and parameter.is_flag:
|
|
121
122
|
# If is_flag=True,
|
|
122
123
|
# then the parameter is a flag and doesn't have a value
|
|
123
124
|
args.append(f"{parameter_name_in_cli}")
|
|
124
125
|
else:
|
|
125
|
-
|
|
126
|
+
space_or_equals = ""
|
|
127
|
+
|
|
128
|
+
if len(parameter_name_in_cli) <= 2:
|
|
126
129
|
# Short options
|
|
127
130
|
# (often denoted by a single hyphen and a single letter like -r)
|
|
128
131
|
# are commonly written with a space
|
|
129
132
|
# between the option and its value
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
)
|
|
133
|
-
elif len(parameter_name_in_cli) > 2:
|
|
133
|
+
space_or_equals = " "
|
|
134
|
+
else:
|
|
134
135
|
# Long options
|
|
135
136
|
# (often denoted by two hyphens and a word like --recursive)
|
|
136
137
|
# are commonly written with an equals sign
|
|
137
138
|
# between the option and its value
|
|
139
|
+
space_or_equals = "="
|
|
140
|
+
|
|
141
|
+
if isinstance(parameter_value_in_work, list):
|
|
142
|
+
if hasattr(parameter, "multiple") and parameter.multiple:
|
|
143
|
+
for value in parameter_value_in_work:
|
|
144
|
+
args.append(
|
|
145
|
+
f"{parameter_name_in_cli}{space_or_equals}{value}"
|
|
146
|
+
)
|
|
147
|
+
elif hasattr(parameter, "nargs") and parameter.nargs:
|
|
148
|
+
values = " ".join(parameter_value_in_work)
|
|
149
|
+
args.append(f"{parameter_name_in_cli} {values}")
|
|
150
|
+
else:
|
|
138
151
|
args.append(
|
|
139
|
-
f"{parameter_name_in_cli}
|
|
152
|
+
f"{parameter_name_in_cli}{space_or_equals}{parameter_value_in_work}" # noqa
|
|
140
153
|
)
|
|
141
154
|
|
|
142
155
|
return args
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|