Skip to content

Commit 9079f5a

Browse files
committed
fix(cmd/main.go): applies agent and workflow updates to cli
1 parent 3443284 commit 9079f5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var agentRunWorkflowCmd = &cobra.Command{
4141
inventoryFile, _ := cmd.Flags().GetString("inventory")
4242

4343
agent := storm.NewAgent()
44-
err := agent.Run(agent.WithFiles(workflowFile, inventoryFile))
44+
err := agent.Run(agent.AgentWithFiles(workflowFile, inventoryFile))
4545
if err != nil {
4646
os.Exit(1)
4747
}
@@ -101,7 +101,7 @@ var runWorkflowCmd = &cobra.Command{
101101
wc.Directory = directory
102102
}
103103

104-
err = workflow.RunWithConfig(*wc)
104+
err = workflow.Run(workflow.WorkflowWithConfig(*wc))
105105
if err != nil {
106106
os.Exit(1)
107107
}

0 commit comments

Comments
 (0)