dkdc-files
File management library and CLI for dkdc virtual filesystem.
Overview
This crate provides:
- A library with file management functions
- A standalone CLI binary for file operations
Both the standalone dkdc-files CLI and the main dkdc CLI use the same library functions, ensuring consistent behavior.
Installation
Usage
As a CLI
# List files
# Add a file
# Open a file in editor
# Dump all files to local directory
# Restore files from directory
As a Library
use ;
// List files
list_files?;
// Add a file
add_file?;
// Open file in editor
open_file?;
// Dump files
dump_files?;
// Restore files
restore_files?;
Architecture
- Library functions in
src/lib.rsprovide the core functionality - Thin CLI wrapper in
src/main.rsfor standalone usage - Shared by both
dkdcanddkdc-filesbinaries
Dependencies
dkdc-config: Configuration managementdkdc-lake: Core lake functionalityclap: CLI argument parsinganyhow: Error handling