|
| 1 | +package main |
| 2 | + |
| 3 | +type ItemPair struct { |
| 4 | + Com string |
| 5 | + Def string |
| 6 | +} |
| 7 | + |
| 8 | +type Page struct { |
| 9 | + Header string |
| 10 | + Info string |
| 11 | + Body []ItemPair |
| 12 | + Footer string |
| 13 | +} |
| 14 | + |
| 15 | +var help = Page{ |
| 16 | + Header: ` |
| 17 | +Help of "pot" command: |
| 18 | +`, |
| 19 | + Info: ` |
| 20 | +`, |
| 21 | + Body: []ItemPair{ |
| 22 | + {"<arrow up>", "scroll up"}, |
| 23 | + {"<arrow down>", "scroll down"}, |
| 24 | + {"<space>", "select/unselect container"}, |
| 25 | + {"u", "unselect all containers"}, |
| 26 | + {"q", "quit"}, |
| 27 | + {"h", "prints this help"}, |
| 28 | + {"a", "show/hide processes on selected containers"}, |
| 29 | + {"A", "show/hide processes on all containers"}, |
| 30 | + {"k", "kill selected containers"}, |
| 31 | + {"s", "start selected containers"}, |
| 32 | + {"S", "stop selected containers"}, |
| 33 | + {"r", "remove selected containers"}, |
| 34 | + {"i", "view information about current container"}, |
| 35 | + {"p", "pause selected containers"}, |
| 36 | + {"P", "unpause selected containers"}, |
| 37 | + {"1", "sort by name"}, |
| 38 | + {"2", "sort by image"}, |
| 39 | + {"3", "sort by id"}, |
| 40 | + {"4", "sort by command"}, |
| 41 | + {"5", "sort by uptime"}, |
| 42 | + {"6", "sort by status"}, |
| 43 | + {"7", "sort by %CPU"}, |
| 44 | + {"8", "sort by %RAM"}, |
| 45 | + {"I", "revert current sort"}, |
| 46 | + }, |
| 47 | + Footer: ` |
| 48 | +Press 'h' to return. |
| 49 | +`, |
| 50 | +} |
0 commit comments