2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 12:24:56 +00:00

Refactored for 'spec' tool

This commit is contained in:
Jack Andersen
2015-06-09 13:21:45 -10:00
parent 9de4d3fbe7
commit a4ab583a93
8 changed files with 45 additions and 30 deletions

View File

@@ -3,7 +3,7 @@
_hecl ()
{
local word=${COMP_WORDS[COMP_CWORD]}
local filecmds=(init platform add remove group cook clean package)
local filecmds=(init spec add remove group cook clean package)
if [ $COMP_CWORD == 1 ]
then
@@ -15,7 +15,7 @@ _hecl ()
init|add|remove|group|cook|clean|package)
COMPREPLY=($(compgen -f -- "${word}"))
;;
platform)
spec)
COMPREPLY=($(compgen -W "enable disable" "${word}"))
;;
help)