-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhelp.go
50 lines (47 loc) · 1.07 KB
/
help.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
package main
type ItemPair struct {
Com string
Def string
}
type Page struct {
Header string
Info string
Body []ItemPair
Footer string
}
var help = Page{
Header: `
Help of "pot" command:
`,
Info: `
`,
Body: []ItemPair{
{"<arrow up>", "scroll up"},
{"<arrow down>", "scroll down"},
{"<space>", "select/unselect container"},
{"u", "unselect all containers"},
{"q", "quit"},
{"h", "prints this help"},
{"a", "show/hide processes on selected containers"},
{"A", "show/hide processes on all containers"},
{"k", "kill selected containers"},
{"s", "start selected containers"},
{"S", "stop selected containers"},
{"r", "remove selected containers"},
{"i", "view information about current container"},
{"p", "pause selected containers"},
{"P", "unpause selected containers"},
{"1", "sort by name"},
{"2", "sort by image"},
{"3", "sort by id"},
{"4", "sort by command"},
{"5", "sort by uptime"},
{"6", "sort by status"},
{"7", "sort by %CPU"},
{"8", "sort by %RAM"},
{"I", "revert current sort"},
},
Footer: `
Press 'h' to return.
`,
}