forked from kardianos/govendor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
msg.go
62 lines (59 loc) · 1000 Bytes
/
msg.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
package help
type HelpMessage byte
const (
MsgNone HelpMessage = iota
MsgFull
MsgInit
MsgList
MsgAdd
MsgUpdate
MsgRemove
MsgFetch
MsgStatus
MsgSync
MsgMigrate
MsgGet
MsgLicense
MsgShell
MsgGovendorLicense
MsgGovendorVersion
)
func (msg HelpMessage) String() string {
msgText := ""
switch msg {
default:
panic("Unknown message type")
case MsgNone:
case MsgFull:
msgText = helpFull
case MsgInit:
msgText = helpInit
case MsgList:
msgText = helpList
case MsgAdd:
msgText = helpAdd
case MsgUpdate:
msgText = helpUpdate
case MsgRemove:
msgText = helpRemove
case MsgFetch:
msgText = helpFetch
case MsgStatus:
msgText = helpStatus
case MsgSync:
msgText = helpSync
case MsgMigrate:
msgText = helpMigrate
case MsgGet:
msgText = helpGet
case MsgLicense:
msgText = helpLicense
case MsgShell:
msgText = helpShell
case MsgGovendorLicense:
msgText = msgGovendorLicenses
case MsgGovendorVersion:
msgText = msgGovendorVersion
}
return msgText
}