Skip to content

Commit e244387

Browse files
committed
feat: add all source
1 parent 16b4547 commit e244387

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/crypto-sync/sync.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ func (s *SyncCmd) Run(ctx *Context) error {
3838
pricingData holdings.Price
3939
)
4040
allHoldings := make(holdings.Holdings, 0, 2)
41+
if len(s.Holdings) == 1 && s.Holdings[0] == "all" {
42+
s.Holdings = []string{}
43+
for key, _ := range ctx.Config.Holdings {
44+
s.Holdings = append(s.Holdings, key)
45+
}
46+
}
4147
for _, holding := range s.Holdings {
4248
log.Println("Fetching holdings from ", strings.Trim(holding, ""))
4349
holdingsProvider, err := holdings.GetProvider(holding)

0 commit comments

Comments
 (0)