Add sfdupes dwim: scan / then print duplicate trees (closes #154)
check / check (push) Successful in 1m21s
check / check (push) Successful in 1m21s
dwim runs what "sfdupes scan /" runs with no flags, then what "sfdupes trees" runs, and ends with a stderr line saying that "sfdupes trees" prints the report again. An interrupt or fatal scan error ends it before the report, as scan ends. It catches signals only during the scan, so a signal during the report ends it at once, as it ends trees. Model: opus-5-5
This commit is contained in:
1 parent
24b0fc486d
commit
e726c18ac7
6 files changed
+179
-9
No files matched your search
@@ -622,6 +622,7 @@ func TestRunUsageErrors(t *testing.T) {
|
||||
"report with args": {[]string{cmdReport, "x"}, usageMarker},
|
||||
"trees with args": {[]string{cmdTrees, "x"}, usageMarker},
|
||||
"info with args": {[]string{cmdInfo, "x"}, usageMarker},
|
||||
"dwim with args": {[]string{cmdDwim, "x"}, usageMarker},
|
||||
"unknown flag": {[]string{cmdScan, "--nope", "/"}, usageMarker},
|
||||
"unknown subcommand": {[]string{"nope"}, "unknown command"},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user