dsq-cli
Command-line interface for dsq - data processing with jq syntax.
The dsq-cli crate provides the command-line interface for dsq, a data processing tool that extends jq-compatible syntax to work with structured data formats like Parquet, Avro, CSV, and more.
Installation
Add this to your Cargo.toml:
[]
= "0.1"
Or for the latest development version:
[]
= { = "https://github.com/durableprogramming/dsq", = "main" }
Requirements
- Rust 1.69 or later
- For full functionality: dsq-core with appropriate features
API Reference
Full API documentation is available at docs.rs/dsq-cli.
Usage
The dsq-cli crate provides the main dsq binary. See the main project README for detailed usage examples.
Key Components
CLI Parsing
Command-line argument parsing and configuration:
use ;
// Parse command line arguments
let config = parse_args?;
Execution Engine
Data processing execution with various modes:
use Executor;
// Execute data processing
let executor = new;
let result = executor.execute.await?;
Interactive REPL
Interactive shell for data exploration:
use Repl;
// Start REPL mode
let repl = new;
repl.run.await?;
Dependencies
- dsq-core - Core data processing functionality
- clap - Command-line argument parsing
- tokio - Async runtime
- anyhow - Error handling
Contributing
Contributions are welcome! Please see the main CONTRIBUTING.md file for guidelines.
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.