Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support args in ls #108

Merged
merged 3 commits into from
Nov 15, 2021
Merged

feat: Support args in ls #108

merged 3 commits into from
Nov 15, 2021

Conversation

JinnyYi
Copy link
Contributor

@JinnyYi JinnyYi commented Nov 13, 2021

ref: #107

cmd/byctl/ls.go Outdated
isFirst = false
isFirstSrc := true
for {
index, value, _ := reflect.Select(cases)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have introduced too much complex logic (and even reflect) to support the calculation of total size and count.

How about support a callback in so.ListWithCallback(path, fn func(o *types.Object))?

And maybe we can refactor the whole cmd package in the futher.

@Xuanwo
Copy link
Contributor

Xuanwo commented Nov 15, 2021

Looks so nice now!

@Xuanwo Xuanwo merged commit f87be95 into beyondstorage:master Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants