Change -W command to accept a single file

Currently setting workflows with the -W (--workflows) flag only accepts
a folder. It is not possible to run a single workflow.yml file.

This commit allows either a single file or a directory to be passed into
the workflows flag.
This commit is contained in:
Dylan Arbour
2020-05-26 23:29:50 -04:00
parent a3a85938ad
commit 69b8802ab3
3 changed files with 21 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ func (i *Input) Workdir() string {
return i.resolve(".")
}
// WorkflowsPath returns path to workflows
// WorkflowsPath returns path to workflow file(s)
func (i *Input) WorkflowsPath() string {
return i.resolve(i.workflowsPath)
}