Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
batmen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sepia-pub
mael
batmen
Commits
9bfcd56b
Commit
9bfcd56b
authored
2 years ago
by
Maël Madon
Browse files
Options
Downloads
Patches
Plain Diff
clean: delete unused bash_completion file,
#3
parent
8c0b0042
Branches
Branches containing commit
No related tags found
1 merge request
!4
Clean repo
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bash_completion.sh
+0
-13
0 additions, 13 deletions
bash_completion.sh
src/main.cpp
+0
-6
0 additions, 6 deletions
src/main.cpp
with
0 additions
and
19 deletions
bash_completion.sh
deleted
100644 → 0
+
0
−
13
View file @
8c0b0042
_filedir_batsched
()
{
_init_completion
-n
2> /dev/null
local
program comparg
program
=
"
${
COMP_WORDS
[0]
}
"
comparg
=
"--complete"
# replace this with your flag
COMPREPLY
=(
$(
"
$program
"
"
$comparg
"
bash
"
$COMP_CWORD
"
"
${
COMP_WORDS
[@]
}
"
2> /dev/null
)
)
[[
$COMPREPLY
]]
&&
return
_filedir
}
complete
-F
_filedir_batsched batsched
This diff is collapsed.
Click to expand it.
src/main.cpp
+
0
−
6
View file @
9bfcd56b
...
...
@@ -74,7 +74,6 @@ int main(int argc, char **argv)
args
::
ArgumentParser
parser
(
"Custom fork of batsched, a Batsim-compatible scheduler in C++."
);
args
::
HelpFlag
flag_help
(
parser
,
"help"
,
"Display this help menu"
,
{
'h'
,
"help"
});
args
::
CompletionFlag
completion
(
parser
,
{
"complete"
});
args
::
ValueFlag
<
double
>
flag_rjms_delay
(
parser
,
"delay"
,
"Sets the expected time that the RJMS takes to do some things like killing a job"
,
{
'd'
,
"rjms_delay"
},
5.0
);
...
...
@@ -125,11 +124,6 @@ int main(int argc, char **argv)
printf
(
"%s"
,
parser
.
Help
().
c_str
());
return
0
;
}
catch
(
args
::
Completion
&
e
)
{
printf
(
"%s"
,
e
.
what
());
return
0
;
}
catch
(
args
::
ParseError
&
e
)
{
printf
(
"%s
\n
"
,
e
.
what
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment