-
Notifications
You must be signed in to change notification settings - Fork 10
feat: add plural cd services tarball
command
#661
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: add plural cd services tarball
command
#661
Conversation
cmd/command/cd/cd_services.go
Outdated
if err != nil { | ||
return fmt.Errorf("could not parse console url: %w", err) | ||
} | ||
digestURL := fmt.Sprintf("%s://%s/ext/v1/digests?id=%s", parsedConsoleURL.Scheme, parsedConsoleURL.Host, service.ID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't fetch the digest first, it's superfluous since you're always downloading the tarball
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, okay. At first I thought that it might be required argument. It's deleted now.
@michaeljguarino I have added a check if target directory is empty, but perhaps you would prefer different behavior here. Maybe we should display confirmation message if target dir is not empty? Or maybe introduce some flag or generate prefix? Edit: Updated default dir to |
733f030
to
f78b876
Compare
Summary
Labels
Test Plan
Checklist