committed by
GitHub
parent
6b37839b01
commit
10f3d929e8
@@ -164,6 +164,7 @@ pub struct Composer {
|
||||
/// Configuration file
|
||||
pub struct ConfigFile {
|
||||
pre_commands: Option<Commands>,
|
||||
post_commands: Option<Commands>,
|
||||
commands: Option<Commands>,
|
||||
git_repos: Option<Vec<String>>,
|
||||
predefined_git_repos: Option<bool>,
|
||||
@@ -416,6 +417,11 @@ impl Config {
|
||||
&self.config_file.pre_commands
|
||||
}
|
||||
|
||||
/// The list of commands to run at the end of all steps
|
||||
pub fn post_commands(&self) -> &Option<Commands> {
|
||||
&self.config_file.post_commands
|
||||
}
|
||||
|
||||
/// The list of custom steps.
|
||||
pub fn commands(&self) -> &Option<Commands> {
|
||||
&self.config_file.commands
|
||||
|
||||
Reference in New Issue
Block a user