Skip to content

Commit b0b9fd1

Browse files
0.4.7
1 parent da05e05 commit b0b9fd1

File tree

15 files changed

+608
-883
lines changed

15 files changed

+608
-883
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "digstore_min"
3-
version = "0.4.6"
3+
version = "0.4.7"
44
edition = "2021"
55
rust-version = "1.70"
66
authors = ["DIG Network"]

README.md

Lines changed: 415 additions & 457 deletions
Large diffs are not rendered by default.

src/cli/commands/cat.rs

Lines changed: 0 additions & 249 deletions
This file was deleted.

src/cli/commands/commit.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use colored::Colorize;
88
/// Execute the commit command
99
pub fn execute(
1010
message: String,
11-
full_layer: bool,
1211
author: Option<String>,
1312
date: Option<String>,
1413
edit: bool,
@@ -59,9 +58,6 @@ pub fn execute(
5958
message
6059
};
6160

62-
if full_layer {
63-
println!(" {} Creating full layer (not delta)", "•".cyan());
64-
}
6561

6662
// Create the commit
6763
let commit_id = store.commit(&final_message)?;
@@ -77,8 +73,7 @@ pub fn execute(
7773
"archive_file": store.archive.path().display().to_string(),
7874
"layer_id": commit_id.to_hex(),
7975
"author": author,
80-
"date": date,
81-
"full_layer": full_layer
76+
"date": date
8277
});
8378
println!("{}", serde_json::to_string_pretty(&output)?);
8479
} else {

src/cli/commands/get.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ pub fn execute(
9696
metadata: bool,
9797
at: Option<String>,
9898
progress: bool,
99-
_decryption_key: Option<String>,
10099
json: bool,
101100
) -> Result<()> {
102101
println!("{}", "Retrieving content...".bright_blue());

src/cli/commands/init.rs

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
//! Initialize command implementation
22
3-
use crate::core::types::Hash;
43
use crate::storage::store::Store;
54
use anyhow::Result;
65
use colored::Colorize;
76
use std::env;
87

98
/// Execute the init command
109
pub fn execute(
11-
store_id: Option<String>,
1210
name: Option<String>,
13-
no_compression: bool,
14-
chunk_size: u32,
1511
encryption_key: Option<String>,
1612
) -> Result<()> {
1713
let current_dir = env::current_dir()?;
@@ -32,19 +28,7 @@ pub fn execute(
3228
);
3329
}
3430

35-
// Check if custom store ID was provided
36-
let _actual_store_id = if let Some(id_str) = store_id {
37-
println!(
38-
" {} Using provided store ID: {}",
39-
"•".cyan(),
40-
id_str.dimmed()
41-
);
42-
Hash::from_hex(&id_str)
43-
.map_err(|_| anyhow::anyhow!("Invalid store ID format: {}", id_str))?
44-
} else {
45-
println!(" {} Generating new store ID...", "•".cyan());
46-
crate::storage::store::generate_store_id()
47-
};
31+
println!(" {} Generating new store ID...", "•".cyan());
4832

4933
// Initialize the store
5034
let store = Store::init(&current_dir)?;
@@ -86,13 +70,7 @@ pub fn execute(
8670
);
8771
}
8872

89-
if !no_compression {
90-
println!(" {} Compression: enabled (zstd)", "•".cyan());
91-
} else {
92-
println!(" {} Compression: disabled", "•".cyan());
93-
}
94-
95-
println!(" {} Chunk size: {}KB", "•".cyan(), chunk_size);
73+
println!(" {} Compression: enabled (zstd)", "•".cyan());
9674

9775
println!();
9876
println!("{}", "Repository initialized".green());

src/cli/commands/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
33
// Core commands (top-level)
44
pub mod add;
5-
pub mod cat;
65
pub mod commit;
76
pub mod completion;
87
pub mod config;

0 commit comments

Comments
 (0)