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
fb70874f
Commit
fb70874f
authored
Dec 20, 2018
by
Valentin Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
argotk.hs completion fix
parent
3a7b5b1d
Pipeline
#4727
passed with stage
in 15 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
completion/argotk.sh
completion/argotk.sh
+1
-1
default.nix
default.nix
+1
-1
shake.hs
shake.hs
+2
-3
No files found.
completion/argotk.sh
View file @
fb70874f
...
...
@@ -8,7 +8,7 @@ _argotk.hs()
CMDLINE
=(
${
CMDLINE
[@]
}
--bash-completion-word
$arg
)
done
COMPREPLY
=(
$(
./argotk
/argotk
.hs
"
${
CMDLINE
[@]
}
"
)
)
COMPREPLY
=(
$(
./argotk.hs
"
${
CMDLINE
[@]
}
"
)
)
}
complete
-o
filenames
-F
_argotk.hs argotk.hs
default.nix
View file @
fb70874f
...
...
@@ -39,7 +39,7 @@ let
];
shellHook
=
''
source
completion/argotk.sh
source
${
./completion/argotk.sh
}
echo "Installed bash completion."
''
;
...
...
shake.hs
View file @
fb70874f
...
...
@@ -12,7 +12,7 @@ main = shakeArgs shakeOptions $ do
want
[
"README.md"
,
"completion/argotk.sh"
]
"completion/*.sh"
%>
\
out
->
mkCompletionRule
out
"bash"
$
"argotk"
</>
takeFileName
out
-<.>
"hs"
%>
\
out
->
mkCompletionRule
out
"bash"
$
takeFileName
out
-<.>
"hs"
"README.md"
%>
\
out
->
do
let
template
=
".README.md"
...
...
@@ -22,9 +22,8 @@ main = shakeArgs shakeOptions $ do
[
take
(
length
panpipe
-
1
)
panpipe
,
template
,
"-o"
,
out
]
where
mkCompletionAction
str
sn
=
(
sn
,
cmd
(
"./"
++
sn
)
[
"--"
++
str
++
"-completion-script"
,
"."
</>
sn
])
(
sn
,
cmd
(
"./
argotk/
"
++
sn
)
[
"--"
++
str
++
"-completion-script"
,
"."
</>
sn
])
mkCompletionRule
out
str
fn
=
do
let
(
needed
,
cplA
)
=
mkCompletionAction
str
fn
need
[
needed
]
(
Stdout
cplScript
)
<-
cplA
liftIO
$
writeFile
out
cplScript
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