Skip to main content

cqlite_cli/commands/
docker.rs

1/// Docker integration commands for cqlite-cli
2use clap::{Args, Subcommand};
3
4#[derive(Args)]
5pub struct DockerArgs {
6    #[command(subcommand)]
7    pub command: DockerCommand,
8}
9
10#[derive(Subcommand)]
11pub enum DockerCommand {
12    /// List available Cassandra containers
13    List,
14    /// Connect to Cassandra container and execute CQL
15    Connect {
16        /// CQL query to execute
17        #[arg(short, long)]
18        query: Option<String>,
19        /// Container name or ID (optional, auto-detects if not provided)
20        #[arg(short, long)]
21        container: Option<String>,
22    },
23    /// Run test suite against Cassandra container
24    Test {
25        /// Test queries file path
26        #[arg(short, long)]
27        queries: Option<String>,
28        /// Run basic test suite
29        #[arg(long)]
30        basic: bool,
31    },
32    /// Check if Cassandra container is ready
33    Status,
34}