forked from luna/vim-rana-local
upgrade wakatime cli to v4.0.13
This commit is contained in:
parent
bc2e820575
commit
5e8248b866
2 changed files with 15 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
__title__ = 'wakatime'
|
__title__ = 'wakatime'
|
||||||
__description__ = 'Common interface to the WakaTime api.'
|
__description__ = 'Common interface to the WakaTime api.'
|
||||||
__url__ = 'https://github.com/wakatime/wakatime'
|
__url__ = 'https://github.com/wakatime/wakatime'
|
||||||
__version_info__ = ('4', '0', '11')
|
__version_info__ = ('4', '0', '13')
|
||||||
__version__ = '.'.join(__version_info__)
|
__version__ = '.'.join(__version_info__)
|
||||||
__author__ = 'Alan Hamlett'
|
__author__ = 'Alan Hamlett'
|
||||||
__author_email__ = 'alan@wakatime.com'
|
__author_email__ = 'alan@wakatime.com'
|
||||||
|
|
|
@ -157,8 +157,10 @@ def parseArguments(argv):
|
||||||
parser.add_argument('--proxy', dest='proxy',
|
parser.add_argument('--proxy', dest='proxy',
|
||||||
help='optional https proxy url; for example: '+
|
help='optional https proxy url; for example: '+
|
||||||
'https://user:pass@localhost:8080')
|
'https://user:pass@localhost:8080')
|
||||||
parser.add_argument('--project', dest='project_name',
|
parser.add_argument('--project', dest='project',
|
||||||
help='optional project name; auto-discovered project takes priority')
|
help='optional project name')
|
||||||
|
parser.add_argument('--alternate-project', dest='alternate_project',
|
||||||
|
help='optional alternate project name; auto-discovered project takes priority')
|
||||||
parser.add_argument('--disableoffline', dest='offline',
|
parser.add_argument('--disableoffline', dest='offline',
|
||||||
action='store_false',
|
action='store_false',
|
||||||
help='disables offline time logging instead of queuing logged time')
|
help='disables offline time logging instead of queuing logged time')
|
||||||
|
@ -444,16 +446,23 @@ def main(argv=None):
|
||||||
if not args.notfile:
|
if not args.notfile:
|
||||||
project = find_project(args.targetFile, configs=configs)
|
project = find_project(args.targetFile, configs=configs)
|
||||||
branch = None
|
branch = None
|
||||||
project_name = args.project_name
|
project_name = args.project
|
||||||
if project:
|
if project:
|
||||||
branch = project.branch()
|
branch = project.branch()
|
||||||
project_name = project.name()
|
if not project_name:
|
||||||
|
project_name = project.name()
|
||||||
|
if not project_name:
|
||||||
|
project_name = args.alternate_project
|
||||||
|
|
||||||
|
kwargs = vars(args)
|
||||||
|
if 'project' in kwargs:
|
||||||
|
del kwargs['project']
|
||||||
|
|
||||||
if send_heartbeat(
|
if send_heartbeat(
|
||||||
project=project_name,
|
project=project_name,
|
||||||
branch=branch,
|
branch=branch,
|
||||||
stats=stats,
|
stats=stats,
|
||||||
**vars(args)
|
**kwargs
|
||||||
):
|
):
|
||||||
queue = Queue()
|
queue = Queue()
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in a new issue