Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Sources/Commands/PackageCommands/CompletionCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import var TSCBasic.stdoutStream
extension SwiftPackageCommand {
struct CompletionCommand: SwiftCommand {
static let configuration = CommandConfiguration(
commandName: "completion-tool",
abstract: "Completion command (for shell completions)"
)

Expand Down
5 changes: 5 additions & 0 deletions Tests/CommandsTests/PackageCommandTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ final class PackageCommandTests: CommandsTestCase {
XCTAssertMatch(stdout, .contains("Swift Package Manager"))
}

func testCompletionTool() throws {
let stdout = try execute(["completion-tool", "--help"]).stdout
XCTAssertMatch(stdout, .contains("OVERVIEW: Completion command (for shell completions)"))
}

func testInitOverview() throws {
let stdout = try execute(["init", "--help"]).stdout
XCTAssertMatch(stdout, .contains("OVERVIEW: Initialize a new package"))
Expand Down