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()
CMDLINE=(${CMDLINE[@]} --bash-completion-word $arg)
done
COMPREPLY=( $(./argotk.hs "${CMDLINE[@]}") )
COMPREPLY=( $(argotk.hs "${CMDLINE[@]}") )
}
complete -o filenames -F _argotk.hs argotk.hs
......@@ -22,7 +22,7 @@ main = shakeArgs shakeOptions $ do
[take (length panpipe - 1) panpipe, template, "-o", out]
where
mkCompletionAction str sn =
(sn, cmd ("./argotk/" ++ sn) ["--" ++ str ++ "-completion-script", "." </> sn])
(sn, cmd ("argotk/" ++ sn) ["--" ++ str ++ "-completion-script", sn])
mkCompletionRule out str fn = do
let (needed, cplA) = mkCompletionAction str fn
(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