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
348b32af
Verified
Commit
348b32af
authored
Jan 31, 2023
by
nfontrod
Browse files
Options
Downloads
Patches
Plain Diff
src/main.rs: add clean module
parent
ae342a89
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main.rs
+6
-0
6 additions, 0 deletions
src/main.rs
with
6 additions
and
0 deletions
src/main.rs
+
6
−
0
View file @
348b32af
...
@@ -5,6 +5,7 @@ use clap::{Args, Parser, Subcommand};
...
@@ -5,6 +5,7 @@ use clap::{Args, Parser, Subcommand};
use
colored
::
Colorize
;
use
colored
::
Colorize
;
use
configt
::
PartialPrune
;
use
configt
::
PartialPrune
;
mod
checkout
;
mod
checkout
;
mod
clean
;
mod
commit
;
mod
commit
;
mod
compact
;
mod
compact
;
mod
config_structure
;
mod
config_structure
;
...
@@ -106,6 +107,8 @@ enum Commands {
...
@@ -106,6 +107,8 @@ enum Commands {
Push
(
Push
),
Push
(
Push
),
/// This command can be used to pull a repository using a remote
/// This command can be used to pull a repository using a remote
Pull
(
Pull
),
Pull
(
Pull
),
/// This command clean the .tmp repository of the project folder
Clean
,
}
}
#[derive(Debug,
Args)]
#[derive(Debug,
Args)]
...
@@ -398,5 +401,8 @@ fn main() {
...
@@ -398,5 +401,8 @@ fn main() {
Commands
::
Pull
(
p
)
=>
{
Commands
::
Pull
(
p
)
=>
{
pull
::
pull
(
&
p
.key
);
pull
::
pull
(
&
p
.key
);
}
}
Commands
::
Clean
=>
{
clean
::
clean
();
}
}
}
}
}
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