Skip to content

Commit

Permalink
remove unnecessary fmt.Println in dataset push and pull commands (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
98sean98 authored Aug 30, 2023
1 parent 1dda7b2 commit da89b60
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions command/dataset/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ If no <path> is specified, the current directory is used.
return errors.New("the current directory is not initialised as a dataset")
}

fmt.Println("ds: ", ds)
fmt.Println("datasetDirPath: ", datasetDirPath)

// get the destination absolute paths from args
destAbsPaths, err := getAbsPaths(args)
if err != nil {
Expand All @@ -63,9 +60,6 @@ If no <path> is specified, the current directory is used.
return err
}

fmt.Println("destAbsPaths: ", destAbsPaths)
fmt.Println("remoteObjectPrefixes: ", remoteObjectPrefixes)

client := dataset.NewFromConfig(*_context.ServiceClientConfig)

ok, objectTypes, invalid, err := verifyRemoteObjectPrefixes(cmd.Context(), *client, ds.ID, args, remoteObjectPrefixes)
Expand All @@ -75,8 +69,6 @@ If no <path> is specified, the current directory is used.
return errors.New(fmt.Sprintf("no objects found in paths: %s", strings.Join(invalid, ", ")))
}

fmt.Println("objectTypes: ", objectTypes)

for i, path := range destAbsPaths {
destRelPath := "."
objectType := ObjectTypeDirectory
Expand Down
6 changes: 0 additions & 6 deletions command/dataset/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,12 @@ If no <path> is specified, the current directory is used.
return errors.New(fmt.Sprintf("invalid paths: %s", strings.Join(invalidArgs, ", ")))
}

fmt.Println("ds: ", ds)
fmt.Println("datasetDirPath: ", datasetDirPath)

// get the remoteObjectPrefixes from srcAbsPaths
remoteObjectPrefixes, err := getRemoteObjectPrefixes(datasetDirPath, srcAbsPaths)
if err != nil {
return err
}

fmt.Println("srcAbsPaths: ", srcAbsPaths)
fmt.Println("remoteObjectPrefixes: ", remoteObjectPrefixes)

client := dataset.NewFromConfig(*_context.ServiceClientConfig)

for i, path := range srcAbsPaths {
Expand Down

0 comments on commit da89b60

Please # to comment.