Skip to content
Open
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 binaries/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition.workspace = true
rust-version.workspace = true
documentation.workspace = true
readme.workspace = true
description.workspace = true
description = "Dora CLI is a convenient command line interface to interact with Dora. We unfortunately do not follow semver for this package. However, we do our best to avoid breaking changes."
license.workspace = true
repository.workspace = true

Expand Down
1 change: 1 addition & 0 deletions binaries/cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dora CLI is a convenient command line interface to interact with Dora. We unfortunately do not follow semver for this package. However, we do our best to avoid breaking changes.
32 changes: 16 additions & 16 deletions binaries/cli/src/command/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ mod up;

pub use run::run_func;

use build::Build;
use check::Check;
use coordinator::Coordinator;
use daemon::Daemon;
use destroy::Destroy;
use eyre::Context;
use graph::Graph;
use list::ListArgs;
use logs::LogsArgs;
use new::NewArgs;
use run::Run;
use runtime::Runtime;
use self_::SelfSubCommand;
use start::Start;
use stop::Stop;
use up::Up;
pub use build::Build;
pub use check::Check;
pub use coordinator::Coordinator;
pub use daemon::Daemon;
pub use destroy::Destroy;
pub use eyre::Context;
pub use graph::Graph;
pub use list::ListArgs;
pub use logs::LogsArgs;
pub use new::NewArgs;
pub use run::Run;
pub use runtime::Runtime;
pub use self_::SelfSubCommand;
pub use start::Start;
pub use stop::Stop;
pub use up::Up;

/// dora-rs cli client
#[derive(Debug, clap::Subcommand)]
Expand Down
16 changes: 8 additions & 8 deletions binaries/cli/src/command/start/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,28 @@ mod attach;
pub struct Start {
/// Path to the dataflow descriptor file
#[clap(value_name = "PATH")]
dataflow: String,
pub dataflow: String,
/// Assign a name to the dataflow
#[clap(long)]
name: Option<String>,
pub name: Option<String>,
/// Address of the dora coordinator
#[clap(long, value_name = "IP", default_value_t = LOCALHOST)]
coordinator_addr: IpAddr,
pub coordinator_addr: IpAddr,
/// Port number of the coordinator control server
#[clap(long, value_name = "PORT", default_value_t = DORA_COORDINATOR_PORT_CONTROL_DEFAULT)]
coordinator_port: u16,
pub coordinator_port: u16,
/// Attach to the dataflow and wait for its completion
#[clap(long, action)]
attach: bool,
pub attach: bool,
/// Run the dataflow in background
#[clap(long, action)]
detach: bool,
pub detach: bool,
/// Enable hot reloading (Python only)
#[clap(long, action)]
hot_reload: bool,
pub hot_reload: bool,
// Use UV to run nodes.
#[clap(long, action)]
uv: bool,
pub uv: bool,
}

impl Executable for Start {
Expand Down
2 changes: 1 addition & 1 deletion binaries/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{
path::PathBuf,
};

mod command;
pub mod command;
mod common;
mod formatting;
pub mod output;
Expand Down
Loading