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
9 changes: 7 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ let products: [Product] = [
name: "GRPCProtobufGenerator",
targets: ["GRPCProtobufGenerator"]
),
.plugin(
name: "generate-grpc-code-from-protos",
targets: ["generate-grpc-code-from-protos"]
),
]

let dependencies: [Package.Dependency] = [
Expand Down Expand Up @@ -118,7 +122,7 @@ let targets: [Target] = [

// Code generator SwiftPM command
.plugin(
name: "GRPCProtobufGeneratorCommand",
name: "generate-grpc-code-from-protos",
capability: .command(
intent: .custom(
verb: "generate-grpc-code-from-protos",
Expand All @@ -134,7 +138,8 @@ let targets: [Target] = [
dependencies: [
.target(name: "protoc-gen-grpc-swift"),
.product(name: "protoc-gen-swift", package: "swift-protobuf"),
]
],
path: "Plugins/GRPCProtobufGeneratorCommand"
),
]

Expand Down
4 changes: 1 addition & 3 deletions Plugins/GRPCProtobufGeneratorCommand/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ struct GRPCProtobufGeneratorCommandPlugin {
outputDirectory: outputDirectory
)

let completionStatus = try executeProtocInvocation(
try executeProtocInvocation(
executableURL: protocPath,
arguments: arguments,
verbose: commandConfig.verbose,
Expand Down Expand Up @@ -229,8 +229,6 @@ func executeProtocInvocation(
arguments: arguments,
stdErr: stdErr
)

return
}

func printProtocOutput(_ stdOut: Pipe, verbose: Bool) throws {
Expand Down