Skip to content

Commit

Permalink
Added command completion for Selenium build tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Jun 26, 2012
1 parent d609bd6 commit 6b2876f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions completions/go.fish
@@ -0,0 +1,13 @@
function __cache_or_get_go_completion -d "Create go completions"
mkdir -p "/tmp/go_completion_cache_for_$USER"
set -l hashed_pwd (echo (pwd) | md5sum | cut -d " " -f 1)
set -l go_cache_file "/tmp/go_completion_cache_for_$USER/$hashed_pwd"

if not test -f "$go_cache_file"
go -T 2>&1 | grep "^go" |cut -d " " -f 2 > "$go_cache_file"
end

cat "$go_cache_file"
end

complete -x -c go -a "(__cache_or_get_go_completion)" --description 'go Task'
3 changes: 3 additions & 0 deletions functions/go.fish
@@ -0,0 +1,3 @@
function go
./go $argv
end
3 changes: 3 additions & 0 deletions functions/gridtest.fish
@@ -0,0 +1,3 @@
function gridtest
./go //java/server/test/org/openqa/grid:test:run
end

0 comments on commit 6b2876f

Please sign in to comment.