Skip to content

Commit c8c321a

Browse files
author
Alex da Franca
committed
Fix grep call for zsh
1 parent 045c47b commit c8c321a

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

CommandlineTool/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import ArgumentParser
99
import Foundation
1010
import XcresultparserLib
1111

12-
private let marketingVersion = "1.9.1"
12+
private let marketingVersion = "1.9.2"
1313

1414
struct xcresultparser: ParsableCommand {
1515
static let configuration = CommandConfiguration(

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let package = Package(
1919
dependencies: [
2020
.package(
2121
url: "https://github.com/apple/swift-argument-parser.git",
22-
.upToNextMajor(from: "1.5.0")
22+
.upToNextMajor(from: "1.6.0")
2323
),
2424
.package(
2525
url: "https://github.com/davidahouse/XCResultKit.git",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ You should see the tool respond like this:
8787
```
8888
Error: Missing expected argument '<xcresult-file>'
8989
90-
OVERVIEW: xcresultparser 1.9.1
90+
OVERVIEW: xcresultparser 1.9.2
9191
Interpret binary .xcresult files and print summary in different formats: txt,
9292
xml, html or colored cli output.
9393

Sources/xcresultparser/JunitXML.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,13 +404,14 @@ private extension ActionTestSummaryGroup {
404404
}
405405

406406
private func cacheAllClassNames(in projectRootUrl: URL, relativePathNames: Bool = true) {
407-
let program = "/usr/bin/egrep"
407+
let program = "/usr/bin/grep"
408408
let grepPathArgument = relativePathNames ? "." : projectRootUrl.path
409409
let arguments = [
410+
"-E",
410411
"-rio",
411-
"--include", "*.swift",
412-
"--include", "*.m",
413-
"--include", "*.mm",
412+
"--include", "'*.swift'",
413+
"--include", "'*.m'",
414+
"--include", "'*.mm'",
414415
"^(?:public )?(?:final )?(?:public )?(?:(class|\\@implementation|struct) )[a-zA-Z0-9_]+",
415416
grepPathArgument
416417
]

0 commit comments

Comments
 (0)