-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25a3514
commit 0300b26
Showing
10 changed files
with
86 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name = "rbuild-runtime" | |
version = "0.1.0" | ||
authors = ["cuisongliu <[email protected]>"] | ||
edition = "2021" | ||
description = "rbuild-runtime, a rusty-hermit application" | ||
description = "rbuild-runtime, a rusty-hermit application.\n\nversion description: https://sealos.io/docs/5.0.0/developer-guide/lifecycle-management/quick-start/deploy-kubernetes#kubernetes-compatibility-with-containerd" | ||
repository = "https://github.com/labring-actions/rbuild-runtime" | ||
license-file = "LICENSE" | ||
[dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use crate::{BaseOpts, CmdExec}; | ||
use clap::Parser; | ||
|
||
#[derive(Parser, Debug, Clone)] | ||
pub struct CacheOpts { | ||
#[arg( | ||
long, | ||
long_help = "registry host address", | ||
default_value = "sealos.hub:5000" | ||
)] | ||
pub registry_host: String, | ||
#[arg(long, long_help = "registry repo name", default_value = "5000")] | ||
pub registry_repo: String, | ||
#[arg(long, long_help = "registry username", default_value = "admin")] | ||
pub registry_username: String, | ||
#[arg(long, long_help = "registry password", default_value = "passw0rd")] | ||
pub registry_password: String, | ||
} | ||
|
||
impl CmdExec for CacheOpts { | ||
async fn execute(self, _base_opts: BaseOpts) -> anyhow::Result<()> { | ||
println!( | ||
"registry info host: {}, username: {}, repo: {}", | ||
self.registry_host, self.registry_username, self.registry_repo | ||
); | ||
Ok(()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters