Skip to content

Commit

Permalink
Updated action.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Nov 1, 2021
1 parent 81a8851 commit 02b91ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,25 @@ var rootCmd = &cobra.Command{
fmt.Printf("Name: %s \n", action.Name)
fmt.Printf("Description: %s\n", action.Description)

inputs := make(map[string]interface{})
inputs := make(map[interface{}]interface{})

err = action.Outputs.Decode(inputs)

if err != nil {
cobra.CheckErr(err)
}

fmt.Printf("Inputs: %s\n", inputs)
fmt.Printf("Inputs: %v\n", inputs)

outputs := make(map[string]interface{})
outputs := make(map[interface{}]interface{})

err = action.Outputs.Decode(outputs)

if err != nil {
cobra.CheckErr(err)
}

fmt.Printf("Outputs: %s \n", outputs)
fmt.Printf("Outputs: %v\n", outputs)

outputFile, err := os.Open(outputFileName)

Expand Down

0 comments on commit 02b91ba

Please sign in to comment.