| 632 | } |
| 633 | |
| 634 | func expandOpenGlobs(currentPath string, source fileStatProvider, args []string) ([]string, error) { |
| 635 | expanded := make([]string, 0, len(args)) |
| 636 | for _, arg := range args { |
| 637 | matches, err := expandRemotePatternToken(arg, "", currentPath, source, false) |
| 638 | if err != nil { |
| 639 | return nil, err |
| 640 | } |
| 641 | expanded = append(expanded, matches...) |
| 642 | } |
| 643 | return expanded, nil |
| 644 | } |
| 645 | |
| 646 | func expandShellGlobs(rootCmd *cobra.Command, currentPath string, source fileStatProvider, args []string) ([]string, error) { |
| 647 | if len(args) == 0 { |