MCPcopy Create free account
hub / github.com/52funny/pikpakcli / expandOpenGlobs

Function expandOpenGlobs

internal/shell/shell.go:634–644  ·  view source on GitHub ↗
(currentPath string, source fileStatProvider, args []string)

Source from the content-addressed store, hash-verified

632}
633
634func 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
646func expandShellGlobs(rootCmd *cobra.Command, currentPath string, source fileStatProvider, args []string) ([]string, error) {
647 if len(args) == 0 {

Callers 2

StartFunction · 0.85
TestExpandOpenGlobsFunction · 0.85

Calls 1

expandRemotePatternTokenFunction · 0.85

Tested by 1

TestExpandOpenGlobsFunction · 0.68