Skip to content

Commit e01ed6f

Browse files
authored
Merge pull request #2095 from ahoppen/ahoppen/subcommand-abstracts
Add abstracts for subcommands of swift-syntax-dev-utils
2 parents ad05c65 + b43fdc1 commit e01ed6f

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/commands/Build.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ import ArgumentParser
1414
import Foundation
1515

1616
struct Build: ParsableCommand, BuildCommand {
17+
static var configuration: CommandConfiguration {
18+
return CommandConfiguration(
19+
abstract: "Build swift-syntax."
20+
)
21+
}
22+
1723
@OptionGroup
1824
var arguments: BuildArguments
1925

SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/commands/GenerateSourceCode.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ import ArgumentParser
1414
import Foundation
1515

1616
struct GenerateSourceCode: ParsableCommand, SourceCodeGeneratorCommand {
17+
static var configuration: CommandConfiguration {
18+
return CommandConfiguration(
19+
abstract: "Generate swift-syntax sources."
20+
)
21+
}
22+
1723
@OptionGroup
1824
var arguments: SourceCodeGeneratorArguments
1925

SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/commands/Test.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ import ArgumentParser
1414
import Foundation
1515

1616
struct Test: ParsableCommand, BuildCommand {
17+
static var configuration: CommandConfiguration {
18+
return CommandConfiguration(
19+
abstract: "Run swift-syntax tests."
20+
)
21+
}
22+
1723
@OptionGroup
1824
var arguments: BuildArguments
1925

SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/commands/VerifySourceCode.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ fileprivate var modules: [String] {
1818
}
1919

2020
struct VerifySourceCode: ParsableCommand, SourceCodeGeneratorCommand {
21+
static var configuration: CommandConfiguration {
22+
return CommandConfiguration(
23+
abstract: "Verify that the generated sources match the ones checked into the repository."
24+
)
25+
}
26+
2127
@OptionGroup
2228
var arguments: SourceCodeGeneratorArguments
2329

0 commit comments

Comments
 (0)