-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathomg.js
More file actions
executable file
·30 lines (23 loc) · 742 Bytes
/
Copy pathomg.js
File metadata and controls
executable file
·30 lines (23 loc) · 742 Bytes
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
#!/usr/bin/env node
var Parse = require('parse').Parse,
comm = require('commander');
require('colors');
var auth = require(__dirname + '/auth');
comm.version(require('./package.json').version);
comm.usage('command [options] [arguments]');
comm.command('add <address>', 'bookmark a URL')
comm.command('tag [<tag> <tag>...]', 'list tags or lookup bookmarks by <tags>')
comm.command('search <query>', 'lookup bookmarks by <query>')
comm
.command('login')
.description('log in to your omg account')
.action(auth.logIn);
comm
.command('logout')
.description('terminate your login session')
.action(auth.logOut);
comm
.command('signup')
.description('sign up for a new omg account')
.action(auth.signUp);
comm.parse(process.argv);