mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
handle todos
This commit is contained in:
@@ -45,6 +45,15 @@ pub fn backup() -> ParentHandler {
|
||||
.subcommand("target", target::target())
|
||||
}
|
||||
|
||||
pub fn package_backup() -> ParentHandler {
|
||||
ParentHandler::new().subcommand(
|
||||
"restore",
|
||||
from_fn_async(restore::restore_packages_rpc)
|
||||
.no_display()
|
||||
.with_remote_cli::<CliContext>(),
|
||||
)
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
struct BackupMetadata {
|
||||
pub timestamp: DateTime<Utc>,
|
||||
|
||||
@@ -33,7 +33,6 @@ pub struct RestorePackageParams {
|
||||
pub password: String,
|
||||
}
|
||||
|
||||
// TODO dr Why doesn't anything use this
|
||||
// #[command(rename = "restore", display(display_none))]
|
||||
#[instrument(skip(ctx, password))]
|
||||
pub async fn restore_packages_rpc(
|
||||
|
||||
Reference in New Issue
Block a user