Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

add an example (mainly for development) #14

Merged
merged 3 commits into from
Feb 28, 2019
Merged

add an example (mainly for development) #14

merged 3 commits into from
Feb 28, 2019

Conversation

marten-seemann
Copy link
Collaborator

Not sure if people will feel comfortable with merging this, considering that we have a separate repo for all other examples. Being able to quickly run a handshake is really helpful for debugging and during development though.

@raulk
Copy link
Member

raulk commented Feb 20, 2019

I think it would make sense to include in this repo if you frame it as a diagnostics CLI tool, rather than just an example. WDYT?

@marten-seemann
Copy link
Collaborator Author

You mean by renaming the example directory to something else? What do you suggest?

@raulk
Copy link
Member

raulk commented Feb 20, 2019

Yeah, I'd rename it to cmd (as per go conventions), and consolidate both commands into one, if it makes sense to you:

$ tlsdiag client -p ...
$ tlsdiag server -p ...

@marten-seemann
Copy link
Collaborator Author

@raulk: Thanks for the suggestion. I wasn't aware of this convention.

I consolidated both commands into one, due to Go's weird flag package this requires the following hack: https://github.com/libp2p/go-libp2p-tls/pull/14/files#diff-90f9094b324522b806a2926a9e42d244R18.
It's not production code, so that might be ok for now...

@marten-seemann marten-seemann marked this pull request as ready for review February 21, 2019 09:08
Copy link
Member

@raulk raulk left a comment

Choose a reason for hiding this comment

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

@marten-seemann could you rename the cmd/cmdimpl package to cmd/tlsdiag for consistency? Other than that, LGTM. go-libp2p-peer is gx-imported transitively, that's why the build doesn't fail in CI.

@marten-seemann
Copy link
Collaborator Author

go-libp2p-peer is gx-imported transitively, that's why the build doesn't fail in CI.

Is that something that needs to be fixed? Should I add go-libp2p-peer to the package.json?

@marten-seemann marten-seemann deleted the example branch February 28, 2019 00:44
@raulk
Copy link
Member

raulk commented Feb 28, 2019

@marten-seemann I don't think it's important; it was more a "note to myself" 😛

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants