Skip to content

Commit

Permalink
Adding more output to script scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
kellrott committed Jan 29, 2024
1 parent 4265b20 commit cce225b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/scan/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ var ObjectCommand = &cobra.Command{
}

type ScriptEntry struct {
Name string `json:"name"`
Path string `json:"path"`
Inputs []string `json:"inputs"`
Outputs []string `json:"outputs"`
Expand Down Expand Up @@ -161,6 +162,7 @@ var ScriptCommand = &cobra.Command{

s := ScriptEntry{
Path: cmdPath,
Name: pb.Name,
Outputs: relPathArray(baseDir, removeDuplicates(outputs)),
Inputs: relPathArray(baseDir, removeDuplicates(inputs)),
}
Expand All @@ -183,7 +185,8 @@ var ScriptCommand = &cobra.Command{

// Cmd is the declaration of the command line
var Cmd = &cobra.Command{
Use: "scan",
Use: "scan",
Short: "Scan for scripts or objects",
}

func init() {
Expand Down

0 comments on commit cce225b

Please sign in to comment.