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
9 changes: 9 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ members = [
"crates/skilld-command",
"crates/skilld-core",
"crates/skilld-native",
"crates/skilld-ui",
"crates/skilld-wasi",
]
resolver = "3"
Expand All @@ -27,6 +28,7 @@ sha2 = "0.11.0"
skilld-auth = { path = "crates/skilld-auth" }
skilld-command = { path = "crates/skilld-command" }
skilld-core = { path = "crates/skilld-core" }
skilld-ui = { path = "crates/skilld-ui" }
subtle = "2.6.1"
tempfile = "3.27.0"
terminal_size = "0.4.4"
Expand Down
2 changes: 2 additions & 0 deletions crates/skilld-command/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ sha2.workspace = true

skilld-core.workspace = true

skilld-ui.workspace = true

tempfile.workspace = true

unicode-width.workspace = true
Expand Down
21 changes: 11 additions & 10 deletions crates/skilld-command/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use std::path::{Path, PathBuf};

use serde::{Deserialize, Serialize};
use skilld_core::{AgentTargetId, InstallMode};
use skilld_ui::Line;

use crate::CommandError;

Expand Down Expand Up @@ -53,17 +54,17 @@ impl LocalConfig {
}
}

pub fn entries(&self) -> Vec<String> {
pub fn entries(&self) -> Vec<Line> {
let targets = self
.agent_targets
.iter()
.map(|target| target.as_str())
.collect::<Vec<_>>()
.join(",");
let mode = self.install_mode.as_str();
vec![
format!(
"agent.targets={}",
self.agent_targets
.iter()
.map(|target| target.as_str())
.collect::<Vec<_>>()
.join(",")
),
format!("install.mode={}", self.install_mode.as_str()),
Line::field_plain(format!("agent.targets={targets}"), "agent.targets", targets),
Line::field_plain(format!("install.mode={mode}"), "install.mode", mode),
]
}
}
Expand Down
Loading