Skip to content

Commit

Permalink
#417: added completion script for bash
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Jun 25, 2024
1 parent e0a2efc commit 065207e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cli/src/main/package/completion
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
_ide_completion()
{
local result
if [ -z "${COMP_WORDS[COMP_CWORD]}" ]; then
result=$(ideasy complete ${COMP_WORDS[@]:1} "")
else
result=$(ideasy complete ${COMP_WORDS[@]:1})
fi
result="${result//$'\n'/ }"
COMPREPLY=( $result )
}

complete -F _ide_completion ide

0 comments on commit 065207e

Please sign in to comment.