-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
cmd_chat.go
72 lines (68 loc) · 2.1 KB
/
cmd_chat.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Copyright 2016 Keybase, Inc. All rights reserved. Use of
// this source code is governed by the included BSD license.
package client
import (
"sort"
"github.com/keybase/cli"
"github.com/keybase/client/go/libcmdline"
"github.com/keybase/client/go/libkb"
)
func NewCmdChat(cl *libcmdline.CommandLine, g *libkb.GlobalContext) cli.Command {
subcommands := []cli.Command{
newCmdChatAddToChannel(cl, g),
newCmdChatRemoveFromChannel(cl, g),
newCmdChatAPI(cl, g),
newCmdChatAPIListen(cl, g),
newCmdChatArchive(cl, g),
newCmdChatArchiveDelete(cl, g),
newCmdChatArchiveList(cl, g),
newCmdChatArchivePause(cl, g),
newCmdChatArchiveResume(cl, g),
newCmdChatDefaultChannels(cl, g),
newCmdChatDeleteChannel(cl, g),
newCmdChatDeleteHistory(cl, g),
newCmdChatDownload(cl, g),
newCmdChatHide(cl, g),
newCmdChatJoinChannel(cl, g),
newCmdChatLeaveChannel(cl, g),
newCmdChatRenameChannel(cl, g),
newCmdChatCreateChannel(cl, g),
newCmdChatList(cl, g),
newCmdChatListChannels(cl, g),
newCmdChatListMembers(cl, g),
newCmdChatListUnread(cl, g),
newCmdChatMute(cl, g),
newCmdChatRead(cl, g),
newCmdChatReAddMember(cl, g),
newCmdChatReport(cl, g),
newCmdChatSetRetention(cl, g),
newCmdChatSetConvMinWriterRole(cl, g),
newCmdChatSetNotificationSettings(cl, g),
newCmdChatSearchInbox(cl, g),
newCmdChatSearchRegexp(cl, g),
newCmdChatSend(cl, g),
newCmdChatUpload(cl, g),
newCmdChatAddBotMember(cl, g),
newCmdChatRemoveBotMember(cl, g),
newCmdChatEditBotMember(cl, g),
newCmdChatBotMemberSettings(cl, g),
newCmdChatFeaturedBots(cl, g),
newCmdChatSearchBots(cl, g),
newCmdChatClearCommands(cl, g),
newCmdChatConvInfo(cl, g),
newCmdChatAddEmoji(cl, g),
newCmdChatAddEmojiAlias(cl, g),
newCmdChatListEmoji(cl, g),
newCmdChatRemoveEmoji(cl, g),
newCmdChatForwardMsg(cl, g),
newCmdChatMarkAsRead(cl, g),
}
subcommands = append(subcommands, getBuildSpecificChatCommands(cl, g)...)
sort.Sort(cli.ByName(subcommands))
return cli.Command{
Name: "chat",
Usage: "Chat securely with keybase users",
ArgumentHelp: "[arguments...]",
Subcommands: subcommands,
}
}