Skip to content

Commit c76b2f7

Browse files
committed
chore: dont pull data for update, by default
1 parent 7ae83d8 commit c76b2f7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

cmd/update.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import (
1313
"github.com/spf13/cobra"
1414
)
1515

16+
var updateIncludeData bool
17+
1618
var UpdateCommand = &cobra.Command{
1719
Use: "update",
1820
Short: "Check for current version of the Scroll and update if necessary",
@@ -70,7 +72,7 @@ var UpdateCommand = &cobra.Command{
7072

7173
if canUpdate {
7274
logger.Log().Info("Updated scroll files")
73-
err = registryClient.Pull(cwd, artifact)
75+
err = registryClient.PullSelective(cwd, artifact, updateIncludeData, nil)
7476
if err != nil {
7577
return fmt.Errorf("error pulling scroll files: %v", err)
7678
}
@@ -82,3 +84,7 @@ var UpdateCommand = &cobra.Command{
8284
return nil
8385
},
8486
}
87+
88+
func init() {
89+
UpdateCommand.Flags().BoolVar(&updateIncludeData, "include-data", false, "Also pull scroll data layers")
90+
}

0 commit comments

Comments
 (0)