diff options
Diffstat (limited to 'crates/shirabe/src/command/init_command.rs')
| -rw-r--r-- | crates/shirabe/src/command/init_command.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/crates/shirabe/src/command/init_command.rs b/crates/shirabe/src/command/init_command.rs index 5a3c71b..f8bdad9 100644 --- a/crates/shirabe/src/command/init_command.rs +++ b/crates/shirabe/src/command/init_command.rs @@ -426,11 +426,19 @@ impl InitCommand { if !input.borrow().is_interactive() { if input.borrow().get_option("name").is_null() { - // TODO(phase-b): input.set_option requires &mut; signature passes &dyn here + let name = self.get_default_package_name(); + input + .borrow_mut() + .set_option("name", PhpMixed::from(name)) + .expect("name option is defined"); } if input.borrow().get_option("author").is_null() { - // TODO(phase-b): input.set_option requires &mut; signature passes &dyn here + let author = self.get_default_author(); + input + .borrow_mut() + .set_option("author", PhpMixed::from(author)) + .expect("author option is defined"); } } } |
