49 Commits

Author SHA1 Message Date
0a8e68baf4 Remove print statement that was left in by accident... woops! 2020-05-12 18:50:55 -04:00
acc3e3ddec Fix ListConvsOnName 2020-05-12 14:45:50 -04:00
22396f8276 Add ListConvsOnName 2020-05-12 01:39:29 -04:00
c9a2bd80bc Add New() for creating new keybase objects.
This function accepts functional options, and allows you to set an alternate home dir for keybase
2020-05-11 22:48:30 -04:00
Sam
111d41b901 Update ListMembers to output correct type 2020-04-22 13:30:01 -04:00
Sam
300e330b8d Update AVDL compiled types 2020-04-22 13:29:22 -04:00
Sam
d69b73c5c1 use v2 types 2020-04-09 09:15:14 -04:00
Sam
b51c00a910 Update AVDL compiled types 2020-04-08 22:55:36 -04:00
Sam
0fd676670f Version 2 2020-04-06 12:43:35 -04:00
Sam
74992fe2c3 Remove ReadMessage -- it will eventually be replaced by the API's get method 2020-03-30 14:06:59 -04:00
Sam
74fb4a152b Add ListMembers methods 2020-03-14 21:27:40 -04:00
Sam
07f5168a6a subscriptionChannels should not be exported 2020-03-12 11:35:36 -04:00
0631dc60a7 updated phrasing to match go standards 2020-03-12 15:23:08 +00:00
71d1800637 added comments to exported types 2020-03-12 15:21:46 +00:00
Sam
c852393504 Fix download methods 2020-03-12 09:01:41 -04:00
Sam
ef7a20a94b Add download methods 2020-03-12 00:48:26 -04:00
Sam
21b141b7a1 Add UploadToChannel and UploadToConversation 2020-03-12 00:31:59 -04:00
Sam
8cef252023 Remove chat.Read() chat.Next() and chat.Previous() as they have been replaced 2020-03-12 00:24:48 -04:00
Sam
dd6726911e Remove old advertisement types as they are no longer used 2020-03-12 00:15:07 -04:00
Sam
0316bc6db1 Add AdvertiseCommands and ClearCommands 2020-03-12 00:07:38 -04:00
Sam
a22970a284 Add Next and Previous read methods 2020-03-11 17:16:46 -04:00
Sam
ad3edadc79 Add read methods 2020-03-11 15:21:48 -04:00
Sam
5a7a6d7538 Simplify funcs that wrap SendMessage 2020-03-08 11:47:34 -04:00
Sam
4e55ebaf05 Remove more custom types 2020-03-08 10:33:20 -04:00
Sam
6c11327289 Convert keystore funcs to use avdl compiled types 2020-03-06 14:17:23 -05:00
Sam
f6d26e1905 Add license 2020-03-03 08:15:49 -05:00
Sam
0feb664405 Remove wallet and convs from options, and instead automatically enable them if the correct handlers are present 2020-03-02 22:02:21 -05:00
Sam
ca2a1fdf25 Remove custom types 2020-02-29 10:12:15 -05:00
Sam
c031c36a00 Move types to types.go 2020-02-29 00:49:50 -05:00
Sam
5f211c7a90 Add support for new-conversation events 2020-02-29 00:39:22 -05:00
Sam
3bcca84908 Allow different types of notifications to come through separate channels 2020-02-29 00:24:40 -05:00
Sam
93daa56db1 Add GetConversations() 2020-02-16 23:49:58 -05:00
Sam
c272c05092 Add GetConversations 2020-02-16 23:21:20 -05:00
Sam
67ffd89a00 Add delete message funcs 2020-02-16 22:14:44 -05:00
Sam
97adac7fa4 Remove chat.React() 2020-02-16 22:08:15 -05:00
Sam
e24450a0af Add ReactByChannel and ReactByConvID 2020-02-16 22:00:04 -05:00
Sam
5bcd11703a Change the word To to By since it seems to make more sense 2020-02-16 21:53:59 -05:00
Sam
c4f06fa79b Remove chat.Edit 2020-02-16 16:11:56 -05:00
Sam
b50d3bcfa2 Clean up some of the comments 2020-02-16 16:09:08 -05:00
Sam
b55e4b8315 Add Edit funcs 2020-02-16 15:59:37 -05:00
Sam
450f2c1558 Add method arg to SendMessage 2020-02-16 15:58:44 -05:00
Sam
219ef492f5 Remove chat.Reply 2020-02-16 15:52:30 -05:00
Sam
26e487659c Ephemeral duration should be optional 2020-02-16 15:38:25 -05:00
Sam
3faadfd076 Add ReplyToChannel and ReplyToConvID, and attempt to fix ephemeral sends 2020-02-16 15:22:47 -05:00
Sam
d791203856 Add SendEphemeralToChannel and SendEphemeralToConvID 2020-02-16 14:48:13 -05:00
Sam
285567309a Add SendMessageToConvID 2020-02-16 14:07:26 -05:00
Sam
4e2656445c Add SendMessage and SendMessageToChannel, and the necessary types to go with them 2020-02-16 14:01:39 -05:00
Sam
0cfaa93505 Change Channel to use chat1.Channel 2020-01-29 17:07:42 -05:00
Sam
6d85c97e05 Add avdl compiled types 2020-01-29 16:19:18 -05:00
171 changed files with 4 additions and 2375 deletions

View File

@ -5,6 +5,7 @@ import (
"encoding/json"
"errors"
"fmt"
"os/exec"
"time"
"samhofi.us/x/keybase/v2/types/chat1"
@ -44,7 +45,7 @@ func getNewMessages(k *Keybase, subs *subscriptionChannels, execOptions []string
cmd = append(cmd, execString...)
execCmd := execCommand(k.ExePath, cmd...)
execCmd := exec.Command(k.ExePath, cmd...)
stdOut, _ := execCmd.StdoutPipe()
execCmd.Start()
scanner := bufio.NewScanner(stdOut)

View File

2
go.mod
View File

@ -1,3 +1,3 @@
module samhofi.us/x/keybase
module samhofi.us/x/keybase/v2
go 1.13

View File

@ -9,9 +9,6 @@ import (
"samhofi.us/x/keybase/v2/types/chat1"
)
// Used for testing
var execCommand = exec.Command
// Possible MemberTypes
const (
TEAM string = "team"
@ -73,7 +70,7 @@ func (k *Keybase) Exec(command ...string) ([]byte, error) {
cmd = append(cmd, command...)
out, err := execCommand(k.ExePath, cmd...).Output()
out, err := exec.Command(k.ExePath, cmd...).Output()
if err != nil {
return []byte{}, err
}

View File

View File

@ -114,7 +114,6 @@ type SendMessageOptions struct {
ReplyTo *chat1.MessageID `json:"reply_to,omitempty"`
ExplodingLifetime *ExplodingLifetime `json:"exploding_lifetime,omitempty"`
UnreadOnly bool `json:"unread_only,omitempty"`
NonBlock bool `json:"nonblock,omitempty"`
}
type sendMessageParams struct {

Some files were not shown because too many files have changed in this diff Show More