You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment the parsing of the workflow argument is not fully centralised.
For the "offline" commands (e.g. cylc diff, cylc config, cylc list) we have the centralised parse_workflow_arg function.
For the "online" commands (e.g. pause, stop, trigger) we don't have any centralised function, we usually (but don't always) do os.path.normpath(workflow).
I think we should pull this functionality into a single function something along the lines of:
# cylc.flow.workflow_files
...
defparse_reg(reg, src=False, run=False) ->str:
""" Args: src: Reg can be a source workflow located by an absolute path. run: Reg can be a run directory located by relative path from ~/cylc-run/ """
At the moment the parsing of the workflow argument is not fully centralised.
For the "offline" commands (e.g.
cylc diff
,cylc config
,cylc list
) we have the centralisedparse_workflow_arg
function.For the "online" commands (e.g.
pause
,stop
,trigger
) we don't have any centralised function, we usually (but don't always) doos.path.normpath(workflow)
.I think we should pull this functionality into a single function something along the lines of:
This is better for maintenance and would provide us with a good place to handle future changes to registration parsing:
The text was updated successfully, but these errors were encountered: