Skip to content

Commit

Permalink
Update bash_completion from changed cli of flit disguise
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebentley15 committed Oct 4, 2020
1 parent 9591f60 commit a3f9a1e
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions scripts/bash-completion/flit
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ _flit_disguise()
-o --output
-m --disguise-map
-u --undo
--fields"
-j --jobs"
# file field

case "${prev}" in
Expand All @@ -115,26 +115,8 @@ _flit_disguise()
return 0
;;

--fields)
# three possible fields: file, function, test
# TODO: separate on comma and only complete since the last comma
local possibilities="
file
file,function
file,function,test
file,test
file,test,function
function
function,file
function,file,test
function,test
function,test,file
test
test,file
test,file,function
test,function
test,function,file"
COMPREPLY=( $(compgen -W "${possibilities}" -- "${cur}") )
-j|--jobs)
# do no completion -- numbers
return 0
;;

Expand Down

0 comments on commit a3f9a1e

Please sign in to comment.