Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a makefile for the bot * Generate the bot types * Replace Channel with chat1.ChatChannel * Replace Send with chat1.MsgSender * Replace Conversation with ConvSummary * Replace Message with MsgSummary, and update message ids where needed * Replace Leave and JoinChannelResult with EmptyRes * Replace ThreadResult with chat1.Thread * Remove some unused structs * Replace CommandsAdvertisement with chat1.AdvertiseCommandsParam * Remove ThreadResult and MessageHolder * Replace wallet types * Fix an example * Use stellar1.LocalPayment for listen * Use keybase1.TeamMembersDetails instead of ListTeamMembersResultMembers * Replace ListUserMembershipsResultTeam with keybase1.AnnotatedMemberInfo * Update readme * Add .gitattributes file * Add clean * Update some types in the readme * Add go fmt after generated types * Output of 1.4.1 * Explicit default goal * Use goimports instead of go fmt * Skip types/ * Have golangci-lint run vet and lint * Add dependencies to makefile * Add a note about goimports
- Loading branch information
Nathan Smith
committed
Aug 29, 2019
1 parent
0f6fe4e
commit 15c0ee3
Showing
151 changed files
with
35,634 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
kbchat/types/ linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,8 @@ linters: | |
- gofmt | ||
- gocritic | ||
- unconvert | ||
- govet | ||
- golint | ||
run: | ||
skip-dirs: | ||
- kbchat/types/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
PROTOCOL_PATH=../client/protocol | ||
AVDLC=$(PROTOCOL_PATH)/node_modules/.bin/avdlc | ||
|
||
.DEFAULT_GOAL := types | ||
|
||
types: | ||
@mkdir -p kbchat/types/{keybase1,gregor1,chat1,stellar1}/ | ||
$(AVDLC) -b -l go -t -o kbchat/types/keybase1 $(PROTOCOL_PATH)/avdl/keybase1/*.avdl | ||
$(AVDLC) -b -l go -t -o kbchat/types/gregor1 $(PROTOCOL_PATH)/avdl/gregor1/*.avdl | ||
$(AVDLC) -b -l go -t -o kbchat/types/chat1 $(PROTOCOL_PATH)/avdl/chat1/*.avdl | ||
$(AVDLC) -b -l go -t -o kbchat/types/stellar1 $(PROTOCOL_PATH)/avdl/stellar1/*.avdl | ||
goimports -w ./kbchat/types/ | ||
|
||
dependencies: | ||
go get github.com/stretchr/testify/require | ||
go get gopkg.in/yaml.v2 | ||
|
||
clean: | ||
rm -rf kbchat/types/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.