Skip to content

Commit

Permalink
Add support for paths as command line args
Browse files Browse the repository at this point in the history
  • Loading branch information
braydonk committed Aug 17, 2022
1 parent c5e9087 commit 7b4f2d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/yamlfmt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ func run() error {
return err
}

if len(flag.Args()) > 0 {
configData["include"] = flag.Args()
}

return command.RunCommand(op, getFullRegistry(), configData)
}

Expand Down

0 comments on commit 7b4f2d5

Please sign in to comment.