Skip to content

Commit 622819b

Browse files
committed
x
1 parent 17da896 commit 622819b

File tree

1 file changed

+7
-6
lines changed
  • crates/arkflow-core/src/cli

1 file changed

+7
-6
lines changed

crates/arkflow-core/src/cli/mod.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,32 +56,33 @@ impl Cli {
5656
.action(clap::ArgAction::SetTrue),
5757
)
5858
.subcommand(
59-
Command::new("remote")
59+
Command::new("remote").about("Use remote configuration for automatic stream management.")
6060
.arg(
6161
Arg::new("config-url")
6262
.long("config-url")
6363
.value_name("URL")
64-
.help("Remote configuration API endpoint URL for automatic pipeline management.")
64+
.help("Remote configuration API endpoint URL for automatic stream management.")
65+
.required( true)
6566
)
6667
.arg(
6768
Arg::new("config-interval")
6869
.long("config-interval")
6970
.value_name("SECONDS")
70-
.help("Interval in seconds for polling remote configuration (default: 30).")
71+
.help("Interval in seconds for polling remote configuration.")
7172
.default_value("30"),
7273
)
7374
.arg(
7475
Arg::new("config-token")
7576
.long("config-token")
7677
.value_name("TOKEN")
77-
.help("Authentication token for remote configuration API."),
78+
.help("Authentication token for remote configuration API.")
79+
.required( true),
7880
))
7981
.get_matches();
8082

8183
// Check if using remote configuration
8284
if let Some(remote) = matches.subcommand_matches("remote") {
8385
// Initialize remote configuration manager
84-
matches.subcommand_matches("remote");
8586
let interval = remote
8687
.get_one::<String>("config-interval")
8788
.and_then(|s| s.parse::<u64>().ok())
@@ -93,7 +94,7 @@ impl Cli {
9394

9495
let remote_manager = RemoteConfigManager::new(remote_url.clone(), interval, token);
9596

96-
self.remote_config_manager = Some(remote_manager);
97+
self.remote_config_manager.replace(remote_manager);
9798
info!("Using remote configuration from: {}", remote_url);
9899
} else {
99100
// Use local configuration file

0 commit comments

Comments
 (0)