Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/feature-fix-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ jobs:

if [ "$ISSUE_STATE" = "OPEN" ]; then
# Get recent commits for this branch
RECENT_COMMITS=$(git log "origin/develop..${{ github.ref_name }}" --pretty=format:'- %s (%h)' | head -3)
RECENT_COMMITS=$(git log "origin/develop..${{ github.ref_name }}" -n 3 --pretty=format:'- %s (%h)')

gh issue comment "$ISSUE_NUM" --body "🔄 **Update from \`${{ github.ref_name }}\`**

Expand Down
225 changes: 0 additions & 225 deletions CHANGELOG_v1.5.md

This file was deleted.

16 changes: 10 additions & 6 deletions src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {

// REPL Loop
loop {
print!("lsm> ");
print!("ApexStore (CLI): ");
io::stdout().flush()?;

let mut input = String::new();
Expand All @@ -44,7 +44,7 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
continue;
}

let parts: Vec<&str> = input.splitn(4, ' ').collect();
let parts: Vec<&str> = input.splitn(3, ' ').collect();
let command = parts[0].to_uppercase();

match command.as_str() {
Expand All @@ -55,6 +55,7 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
}
let key = parts[1].to_string();
let value = parts[2].as_bytes().to_vec();
//let value = parts[2..].join(" ").as_bytes().to_vec();

match engine.set(key.clone(), value) {
Ok(_) => println!("✓ SET '{}' executed successfully", key),
Expand Down Expand Up @@ -144,13 +145,16 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {

"CLEAR" => {
print!("\x1B[2J\x1B[1;1H"); // Clear screen ANSI code
println!("╔═══════════════════════════════════════════════════════╗");
println!("║ LSM-Tree Key-Value Store - Interactive CLI ║");
println!("╚═══════════════════════════════════════════════════════╝\n");
println!(" ___ _____ __ ");
println!(" / | ____ ___ _ __ / ___// /_____ _____ ___ ");
println!(r" / /| | / __ \/ _ \| |/_/ \__ \/ __/ __ \/ ___// _ \");
println!(r" / ___ |/ /_/ / __/> < ___/ / /_/ /_/ / / / __/");
println!(r"/_/ |_/ .___/\___/_/|_| /____/\__/\____/_/ \___/ ");
println!(" /_/ High-Performance LSM-Tree Engine\n");
}

"EXIT" | "QUIT" | "Q" => {
println!("👋 Closing LSM-Tree CLI...");
println!("👋 Closing ApexStore... See you later");
break;
}

Expand Down