Skip to content

Commit

Permalink
Add support to expand glob patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien-rosset committed Jul 5, 2022
1 parent 833a33c commit 033e655
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ func GetRootCmd() cobra.Command {
return *rootCmd
}

// parseArgs parses the command-line positional arguments that contain file glob patterns.
// If no argument is provided, return the default path (current directory).
// Perform glob pattern expansion.
func parseArgs(args []string) ([]string, error) {
if len(args) == 0 {
args = parser.DefaultPath
Expand Down

0 comments on commit 033e655

Please sign in to comment.