Commit d8ed280d authored by Valentin Reis's avatar Valentin Reis

[fix] Completion function fix.

parent fb70874f
Pipeline #4728 passed with stage
in 14 seconds
...@@ -8,7 +8,7 @@ _argotk.hs() ...@@ -8,7 +8,7 @@ _argotk.hs()
CMDLINE=(${CMDLINE[@]} --bash-completion-word $arg) CMDLINE=(${CMDLINE[@]} --bash-completion-word $arg)
done done
COMPREPLY=( $(./argotk.hs "${CMDLINE[@]}") ) COMPREPLY=( $(argotk.hs "${CMDLINE[@]}") )
} }
complete -o filenames -F _argotk.hs argotk.hs complete -o filenames -F _argotk.hs argotk.hs
...@@ -22,7 +22,7 @@ main = shakeArgs shakeOptions $ do ...@@ -22,7 +22,7 @@ main = shakeArgs shakeOptions $ do
[take (length panpipe - 1) panpipe, template, "-o", out] [take (length panpipe - 1) panpipe, template, "-o", out]
where where
mkCompletionAction str sn = mkCompletionAction str sn =
(sn, cmd ("./argotk/" ++ sn) ["--" ++ str ++ "-completion-script", "." </> sn]) (sn, cmd ("argotk/" ++ sn) ["--" ++ str ++ "-completion-script", sn])
mkCompletionRule out str fn = do mkCompletionRule out str fn = do
let (needed, cplA) = mkCompletionAction str fn let (needed, cplA) = mkCompletionAction str fn
(Stdout cplScript) <- cplA (Stdout cplScript) <- cplA
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment