Skip to content
Merged
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
29 changes: 28 additions & 1 deletion helix-cli/src/commands/integrations/helix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,40 @@ impl<'a> HelixManager<'a> {

let dev_profile = build_mode == BuildMode::Dev;

// Build a pruned HelixConfig containing only [project] and the deployed [cloud.<instance>]
let helix_toml_content = {
use crate::config::HelixConfig;
let pruned = HelixConfig {
project: self.project.config.project.clone(),
local: HashMap::new(),
cloud: {
let mut m = HashMap::new();
m.insert(
cluster_name.clone(),
crate::config::CloudConfig::from(
self.project.config.get_instance(&cluster_name)?,
),
);
m
},
};
match toml::to_string_pretty(&pruned) {
Ok(s) => Some(s),
Err(e) => {
output::warning(&format!("Failed to serialize pruned helix.toml: {}", e));
None
}
}
};

// Prepare deployment payload
let payload = json!({
"schema": schema_content,
"queries": queries_map,
"env_vars": cluster_info.env_vars,
"instance_name": cluster_name,
"dev_profile": dev_profile
"dev_profile": dev_profile,
"helix_toml": helix_toml_content
});

// Initiate deployment with SSE streaming
Expand Down
2 changes: 1 addition & 1 deletion helix-cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub mod logs;
pub mod metrics;
pub mod migrate;
pub mod prune;
pub mod pull;
pub mod sync;
pub mod push;
pub mod start;
pub mod status;
Expand Down
73 changes: 0 additions & 73 deletions helix-cli/src/commands/pull.rs

This file was deleted.

Loading
Loading