-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'matze/formarius'
* matze/formarius: bee-install: fix call of bee-check bee-remove: proper error message repository: fix modes of *.sh.in scripts beesh: fix header which is printed when executing a bee file bash completion script for bee added bee-dep: fix exit codes in bee-dep.c bee-dep: graph.c: change type of variable to size_t since strlen returns size_t bee-dep: beedep_tree.c: remove unecessary variable bee-dep: rebuild: fix access of null reference if init_cache failed bee-dep: remove unnecessary message bee-dep: fix option --files combined with --count bee-dep: fix wrong behaviour of graph_insert_nodes
- Loading branch information
Showing
12 changed files
with
67 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
_bee_completion() | ||
{ | ||
COMPREPLY=() | ||
|
||
cur="${COMP_WORDS[COMP_CWORD]}" | ||
prev="${COMP_WORDS[COMP_CWORD-1]}" | ||
|
||
options="init install remove check query list" | ||
ls=$(ls $pwd) | ||
|
||
if [ "${prev}" = "bee" ]; then | ||
COMPREPLY=($(compgen -W "${options} ${ls}" -- ${cur}) ) | ||
return 0 | ||
fi | ||
|
||
packages=$(bee list -a) | ||
COMPREPLY=($(compgen -W "${packages} ${ls}" -- ${cur}) ) | ||
|
||
return 0 | ||
} | ||
|
||
complete -F _bee_completion bee |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters