mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 21:10:36 +00:00
Show deprecation message for generation commands
This commit is contained in:
parent
66aa1fc9ea
commit
85bbcaabaa
1 changed files with 11 additions and 4 deletions
|
@ -112,11 +112,18 @@ impl Cli {
|
||||||
if self.generate_gitbook_dir {
|
if self.generate_gitbook_dir {
|
||||||
generate_gitbook_dir_from_definitions(&TYPEDEFS_DIR).await?;
|
generate_gitbook_dir_from_definitions(&TYPEDEFS_DIR).await?;
|
||||||
}
|
}
|
||||||
if self.setup
|
if (self.generate_luau_types || self.generate_selene_types || self.generate_docs_file)
|
||||||
|| self.generate_luau_types
|
&& !self.setup
|
||||||
|| self.generate_selene_types
|
|
||||||
|| self.generate_docs_file
|
|
||||||
{
|
{
|
||||||
|
eprintln!(
|
||||||
|
"\
|
||||||
|
Typedef & docs generation files have been superseded by the --setup command.\
|
||||||
|
Run lune --setup in your terminal to configure typedef files.
|
||||||
|
"
|
||||||
|
);
|
||||||
|
return Ok(ExitCode::FAILURE);
|
||||||
|
}
|
||||||
|
if self.setup {
|
||||||
generate_typedef_files_from_definitions(&TYPEDEFS_DIR).await?;
|
generate_typedef_files_from_definitions(&TYPEDEFS_DIR).await?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue