This repository has been archived by the owner on Dec 23, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
table3.js
executable file
·57 lines (51 loc) · 1.62 KB
/
table3.js
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
var celery = require('../lib');
var objects = [ { command: 'init',
desc: 'Adds a project in cwd to cupboard.' },
{ command: 'remove <proj>',
desc: 'Removes project from cupboard.' },
{ command: '<cmd> <proj>',
desc: 'Calls custom command specified in project cupboard config.' },
{ command: 'untouch <proj>',
desc: 'Flags given project as updated.' },
{ command: 'publish <proj>',
desc: 'Publishes target project.' },
{ command: 'updates',
desc: 'List all projects with updates.' },
{ command: 'list',
desc: 'List all projects in cupboard organized by most recently updated.' },
{ command: 'install <cupboard plugin>',
desc: 'Installs a third-party cupboard plugin.' },
{ command: 'uninstall <cupboard plugin>',
desc: 'Uninstalls a third-party cupboard plugin.' },
{ command: 'plugins',
desc: 'Lists all third-party plugins.' },
{ command: 'scaffold <type>',
desc: 'Initializes target scaffold in cwd' },
{ command: 'github <proj>',
desc: 'Open github page of target project' },
{ command: 'github-issues <proj>',
desc: 'Open github issues of target project.' },
{ command: 'help', desc: 'Shows the help menu.' },
{ command: 'dir <proj>',
desc: 'Returns the project path.' },
{ command: 'details <proj>',
desc: 'Returns details about the given project such as modified files, and number of updates.' } ];
celery.drawTable(objects, {
columns: [ {
minWidth: 25,
width: 20,
name: 'command'
},
{
name: 'desc',
width: 80,
align: 'left'
} ],
pad: {
left: 10,
right: 10,
top: 2,
bottom: 2
},
ellipsis: true
});