Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
argotest
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Reis
argotest
Commits
d8ed280d
Commit
d8ed280d
authored
Dec 20, 2018
by
Valentin Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] Completion function fix.
parent
fb70874f
Pipeline
#4728
passed with stage
in 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
completion/argotk.sh
completion/argotk.sh
+1
-1
shake.hs
shake.hs
+1
-1
No files found.
completion/argotk.sh
View file @
d8ed280d
...
...
@@ -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
shake.hs
View file @
d8ed280d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
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