Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Aug 29, 2019

Motivation:

We're relying on third-party code for parsing CLI arguments, however,
this is only being used for interop tests and the echo example and isn't
required to use the GRPC module. However when another package depends on
GRPC, SwiftPM will also bring in the third-party code (and all of its
transitive dependencies) even if no targets used by the other package
rely on that code.

Modifications:

Remove usages of "Commander" and replace with some basic CLI parsing.

Result:

Our CLIs are less colorful, but we drop a dependency.

Motivation:

We're relying on third-party code for parsing CLI arguments, however,
this is only being used for interop tests and the echo example and isn't
required to use the GRPC module. However when another package depends on
GRPC, SwiftPM will also bring in the third-party code (and all of its
transitive dependencies) even if no targets used by the other package
rely on that code.

Modifications:

Remove usages of "Commander" and replace with some basic CLI parsing.

Result:

Our CLIs are less colorful, but we drop a dependency.
@linux-foundation-easycla
Copy link

CLA Check
The committers are authorized under a signed CLA.

@glbrntt glbrntt requested a review from MrMage August 29, 2019 16:56
Copy link
Collaborator

@MrMage MrMage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, no more third-party dependencies!

Commands:
server [--tls|--notls] PORT Starts the echo server on the given port.
client [--tls|--notls] HOST PORT RPC MESSAGE Connects to the echo server on the given host
host and port and calls the RPC with the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super-nit: is it intentional that this line is intended more than "Connects" on the previous one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is intentional, it didn't look right as just a wall of text before. Looking again I think un-indenting and adding a new line between client and server would look better.

@MrMage
Copy link
Collaborator

MrMage commented Aug 30, 2019

LGTM

@glbrntt glbrntt merged commit 589611a into grpc:nio Aug 30, 2019
@glbrntt glbrntt deleted the gb-remove-commander branch August 30, 2019 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants