-
Notifications
You must be signed in to change notification settings - Fork 0
/
jolt
executable file
·44 lines (37 loc) · 895 Bytes
/
jolt
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
#!/usr/bin/env python
# coding: utf-8
"""
Jolt : the Vim Package Management System
See http://vimjolts.appspot.com/
This is a script of vimjolts that can manage vimscript. below is our design
philosophy.
* Automatic dependency resolution
* Uninstallable
* Searchable
"""
import os
import sys
import traceback
from joltlib.commands import invoke_command
from joltlib.config import load_config
___name___ = "jolt"
___author___ = "The VimJolts Team"
#___license___ = ""
___version___ = "0.1"
if __name__ == '__main__':
if len(sys.argv) == 1:
invoke_command('help')
try:
load_config()
invoke_command(sys.argv[1], sys.argv[2:])
except TypeError:
if not sys.exc_info()[2].tb_next:
invoke_command('help');
except KeyboardInterrupt:
pass
except SystemExit, e:
sys.exit(e)
except:
traceback.print_exc()
sys.exit(1)
# vim:set et ts=2 sw=2: