Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Haskell
ghcup
Commits
580da225
Verified
Commit
580da225
authored
Jul 24, 2019
by
Julian Ospald
🍵
Browse files
Add basic bash-completion wrt
#109
parent
1b719ead
Changes
2
Hide whitespace changes
Inline
Side-by-side
.bash-completion
0 → 100644
View file @
580da225
_ghcup()
{
local cur
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
if [[ ${#COMP_WORDS[*]} -le 2 ]]; then
COMPREPLY=($(compgen -W "$(ghcup --list-commands)" -- $cur))
fi
return 0
} &&
complete -F _ghcup ghcup
ghcup
View file @
580da225
...
...
@@ -2049,6 +2049,18 @@ while [ $# -gt 0 ] ; do
-V
|
--version
)
printf
"%s
\\
n"
"
${
VERSION
}
"
exit
0
;;
--list-commands
)
echo
"changelog
compile
debug-info
install
install-cabal
list
print-system-reqs
rm
set
upgrade"
exit
0
;;
-h
|
--help
)
usage
;;
-w
|
--wget
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment