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

Support variable arguments for 'rm' command #106

Merged
merged 112 commits into from
Mar 25, 2020
Merged

Support variable arguments for 'rm' command #106

merged 112 commits into from
Mar 25, 2020

Conversation

sonmezonur
Copy link
Member

@sonmezonur sonmezonur commented Mar 18, 2020

This PR adds support for variadic delete operations. It works for both wildcard and non-wildcard strings and does not break backward-compatibility.

For example;

s5cmd rm test.txt testdir/a.txt 'folder/*'

@igungor igungor changed the title Support variable arguments Support variable arguments for 'rm' command Mar 23, 2020
* Since only variadic delete operations supported, move variadic logic inside `cmd_delete.go`. Also dont create dummy goroutine for copy operations, since only one source is needed.
@igungor
Copy link
Member

igungor commented Mar 24, 2020

PTAL

README.md Outdated Show resolved Hide resolved
@igungor
Copy link
Member

igungor commented Mar 24, 2020

Conflict olmus.

command/cmd_delete.go Outdated Show resolved Hide resolved
@igungor igungor merged commit 892f726 into master Mar 25, 2020
@igungor igungor deleted the variadic-args branch March 25, 2020 08:09
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.

3 participants