mirror of
https://github.com/ViViDboarder/vim-abuse-the-force.git
synced 2024-11-22 06:26:29 +00:00
Add ForceDeployTest and ForceTarget ? for lists
This commit is contained in:
parent
b21dc4b373
commit
2f30b4cdb0
@ -18,4 +18,5 @@ endif
|
|||||||
" \%tarning%*[^:]:\ %m
|
" \%tarning%*[^:]:\ %m
|
||||||
|
|
||||||
"set efm=%A\ %#[javac]\ %f:%l:\ %m,%-Z\ %#[javac]\ %p^,%-C%.%#
|
"set efm=%A\ %#[javac]\ %f:%l:\ %m,%-Z\ %#[javac]\ %p^,%-C%.%#
|
||||||
CompilerSet makeprg="abusetheforce deploy file " . %:p
|
set efm=%f:%l:%c\ %t\ in\ %m
|
||||||
|
CompilerSet makeprg=abusetheforce\ deploy\ file\ %
|
||||||
|
@ -8,6 +8,15 @@ function! AbuseTheForceDeploy()
|
|||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! AbuseTheForceDeployTest()
|
||||||
|
let filePath = expand("%")
|
||||||
|
|
||||||
|
"let command = "!echo \"" . filePath . "\""
|
||||||
|
let command = "!abusetheforce deploy test \"" . filePath . "\""
|
||||||
|
execute command
|
||||||
|
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! AbuseTheForceRetrieve()
|
function! AbuseTheForceRetrieve()
|
||||||
let filePath = expand("%")
|
let filePath = expand("%")
|
||||||
|
|
||||||
@ -20,9 +29,15 @@ endfunction
|
|||||||
function! AbuseTheForceTarget(...)
|
function! AbuseTheForceTarget(...)
|
||||||
|
|
||||||
if a:0 > 0
|
if a:0 > 0
|
||||||
let target = a:1
|
|
||||||
|
|
||||||
let command = "!abusetheforce target activate \"" . target . "\""
|
if a:1 == "?"
|
||||||
|
let command = "!abusetheforce target list"
|
||||||
|
else
|
||||||
|
let target = a:1
|
||||||
|
|
||||||
|
let command = "!abusetheforce target activate \"" . target . "\""
|
||||||
|
end
|
||||||
|
|
||||||
execute command
|
execute command
|
||||||
else
|
else
|
||||||
let command = "!abusetheforce target"
|
let command = "!abusetheforce target"
|
||||||
@ -32,6 +47,7 @@ function! AbuseTheForceTarget(...)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
command -nargs=0 ForceDeploy call AbuseTheForceDeploy() " Deploy current file
|
command -nargs=0 ForceDeploy call AbuseTheForceDeploy() " Deploy current file
|
||||||
|
command -nargs=0 ForceDeployTest call AbuseTheForceDeployTest() " Deploy current file and run test
|
||||||
command -nargs=0 ForceRetrieve call AbuseTheForceRetrieve() " Retrieve current file
|
command -nargs=0 ForceRetrieve call AbuseTheForceRetrieve() " Retrieve current file
|
||||||
command -nargs=? ForceTarget call AbuseTheForceTarget(<f-args>) " Change deploy target
|
command -nargs=? ForceTarget call AbuseTheForceTarget(<f-args>) " Change deploy target
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user