Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Deletion Components
Import Process Delete
Commits
8c5fa785
Unverified
Commit
8c5fa785
authored
Feb 25, 2021
by
Sebastian Schüpbach
Browse files
let user apply arguments multiple times
Signed-off-by:
Sebastian Schüpbach
<
sebastian.schuepbach@unibas.ch
>
parent
4839b1fc
Pipeline
#22380
passed with stages
in 5 minutes and 38 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
k8s-manifests/job.yml
View file @
8c5fa785
...
...
@@ -13,7 +13,7 @@ spec:
tier
:
web
spec
:
containers
:
-
name
:
import-process-
administrator
-container
-
name
:
import-process-
delete
-container
args
:
[
# Customise to match your needs
"
--record-set-filter"
,
"
<id>"
,
"
--record-filter"
,
"
<id>"
,
...
...
src/main/scala/ch/memobase/ArgParser.scala
View file @
8c5fa785
/*
* Import Process Delete
* Copyright (C) 202
0
Memoriav
* Copyright (C) 202
1
Memoriav
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
...
...
@@ -37,21 +37,25 @@ trait ArgParser {
.
action
((
v
,
c
)
=>
c
.
copy
(
recordSetFilters
=
c
.
recordSetFilters
:+
v
))
.
valueName
(
"<id>"
)
.
text
(
"record set id filter"
)
.
unbounded
()
.
optional
(),
opt
[
String
](
'i'
,
"institution-filter"
)
.
action
((
v
,
c
)
=>
c
.
copy
(
institutionFilters
=
c
.
institutionFilters
:+
v
))
.
valueName
(
"<id>"
)
.
text
(
"institution id filter"
)
.
unbounded
()
.
optional
(),
opt
[
String
](
'r'
,
"record-filter"
)
.
action
((
v
,
c
)
=>
c
.
copy
(
recordFilters
=
c
.
recordFilters
:+
v
))
.
valueName
(
"<id>"
)
.
text
(
"record id filter"
)
.
unbounded
()
.
optional
(),
opt
[
String
](
's'
,
"session-filter"
)
.
action
((
v
,
c
)
=>
c
.
copy
(
sessionFilters
=
c
.
sessionFilters
:+
v
))
.
valueName
(
"<id>"
)
.
text
(
"session id filter"
)
.
unbounded
()
.
optional
(),
opt
[
Calendar
](
'a'
,
"created-after"
)
.
action
((
v
,
c
)
=>
c
.
copy
(
createdAfterFilter
=
Some
(
v
)))
...
...
Write
Preview
Supports
Markdown
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