Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
git_borg_linker
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
Hub
git_borg_linker
Commits
f8f7c1a8
Verified
Commit
f8f7c1a8
authored
Sep 23, 2022
by
nfontrod
Browse files
Options
Downloads
Patches
Plain Diff
src/delete.rs: Update the name of a group of arguments
parent
5268e66e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/delete.rs
+6
-6
6 additions, 6 deletions
src/delete.rs
with
6 additions
and
6 deletions
src/delete.rs
+
6
−
6
View file @
f8f7c1a8
...
@@ -62,7 +62,7 @@ pub(crate) struct Delete {
...
@@ -62,7 +62,7 @@ pub(crate) struct Delete {
long
=
"prefix"
,
long
=
"prefix"
,
group
=
"pref"
,
group
=
"pref"
,
value_name
=
"PREFIX"
,
value_name
=
"PREFIX"
,
help_heading
=
"
Common Option
s"
,
help_heading
=
"
Archive filter
s"
,
display_order
=
1
display_order
=
1
)]
)]
pub
(
crate
)
prefix
:
Option
<
String
>
,
pub
(
crate
)
prefix
:
Option
<
String
>
,
...
@@ -73,18 +73,18 @@ pub(crate) struct Delete {
...
@@ -73,18 +73,18 @@ pub(crate) struct Delete {
long
=
"glob-archives"
,
long
=
"glob-archives"
,
group
=
"pref"
,
group
=
"pref"
,
value_name
=
"GLOB"
,
value_name
=
"GLOB"
,
help_heading
=
"
Common Option
s"
,
help_heading
=
"
Archive filter
s"
,
display_order
=
2
display_order
=
2
)]
)]
pub
(
crate
)
glob_archives
:
Option
<
String
>
,
pub
(
crate
)
glob_archives
:
Option
<
String
>
,
/// Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
/// Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
#[clap(long
=
"sort-by"
,
help_heading
=
"
Common Option
s"
,
display_order
=
3
)]
#[clap(long
=
"sort-by"
,
help_heading
=
"
Archive filter
s"
,
display_order
=
3
)]
pub
(
crate
)
sort_by
:
Option
<
String
>
,
pub
(
crate
)
sort_by
:
Option
<
String
>
,
/// consider first N archives after other filters were applied
/// consider first N archives after other filters were applied
#[clap(
#[clap(
long,
long,
value_name
=
"N"
,
value_name
=
"N"
,
help_heading
=
"
Common Option
s"
,
help_heading
=
"
Archive filter
s"
,
display_order
=
4
display_order
=
4
)]
)]
pub
(
crate
)
first
:
Option
<
isize
>
,
pub
(
crate
)
first
:
Option
<
isize
>
,
...
@@ -92,7 +92,7 @@ pub(crate) struct Delete {
...
@@ -92,7 +92,7 @@ pub(crate) struct Delete {
#[clap(
#[clap(
long,
long,
value_name
=
"N"
,
value_name
=
"N"
,
help_heading
=
"
Common Option
s"
,
help_heading
=
"
Archive filter
s"
,
display_order
=
5
display_order
=
5
)]
)]
pub
(
crate
)
last
:
Option
<
isize
>
,
pub
(
crate
)
last
:
Option
<
isize
>
,
...
@@ -133,7 +133,7 @@ fn handle_boolean_options(sd: &Delete) -> Vec<String> {
...
@@ -133,7 +133,7 @@ fn handle_boolean_options(sd: &Delete) -> Vec<String> {
/// # Arguments
/// # Arguments
/// * margs A vector the arguments to pass to borg delete
/// * margs A vector the arguments to pass to borg delete
/// * sd: A struct containing all arguments passed to gblk delete
/// * sd: A struct containing all arguments passed to gblk delete
/// Return
///
#
Return
/// Nothing, but will update `margs` parameter
/// Nothing, but will update `margs` parameter
fn
handle_force_arguments
(
margs
:
&
mut
Vec
<
String
>
,
sd
:
&
Delete
)
{
fn
handle_force_arguments
(
margs
:
&
mut
Vec
<
String
>
,
sd
:
&
Delete
)
{
match
sd
.force
{
match
sd
.force
{
...
...
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