Skip to content

Commit 8bab48a

Browse files
committed
make lifat and lila-db-seed optional
1 parent 5b047bb commit 8bab48a

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

command/src/main.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,12 @@ fn setup() -> std::io::Result<()> {
141141
let mut repos_to_clone: Vec<Repository> = vec![
142142
Repository::new("lichess-org", "lila"),
143143
Repository::new("lichess-org", "lila-ws"),
144-
Repository::new("lichess-org", "lila-db-seed"),
145-
Repository::new("lichess-org", "lifat"),
146144
];
147145

146+
if setup_database {
147+
repos_to_clone.push(Repository::new("lichess-org", "lila-db-seed"));
148+
}
149+
148150
let optional_repos: Vec<Repository> = services
149151
.iter()
150152
.filter_map(|service| service.repositories.clone())
@@ -245,6 +247,14 @@ fn prompt_for_optional_services() -> Result<Vec<OptionalService<'static>>, Error
245247
"External Engine",
246248
"for connecting a local chess engine to the analysis board",
247249
)
250+
.item(
251+
OptionalService {
252+
compose_profile: None,
253+
repositories: vec![Repository::new("lichess-org", "lifat")].into(),
254+
},
255+
"Larger static assets",
256+
"Analysis board engines, background images, voice move models, etc",
257+
)
248258
.item(
249259
OptionalService {
250260
compose_profile: vec!["search"].into(),
@@ -258,7 +268,7 @@ fn prompt_for_optional_services() -> Result<Vec<OptionalService<'static>>, Error
258268
compose_profile: vec!["gifs"].into(),
259269
repositories: vec![Repository::new("lichess-org", "lila-gif")].into(),
260270
},
261-
"GIFs",
271+
"GIF generation",
262272
"for generating animated GIFs of games",
263273
)
264274
.item(

0 commit comments

Comments
 (0)