We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c580c3 commit 8f024daCopy full SHA for 8f024da
src/cmd/init.rs
@@ -74,9 +74,9 @@ pub fn execute(args: &ArgMatches) -> Result<()> {
74
if let Some(author) = get_author_name() {
75
debug!("Obtained user name from gitconfig: {:?}", author);
76
config.book.authors.push(author);
77
- builder.with_config(config);
78
}
79
+ builder.with_config(config);
80
builder.build()?;
81
println!("\nAll done, no errors...");
82
tests/cli/init.rs
@@ -43,5 +43,5 @@ fn no_git_config_with_title() {
43
.stdout(predicates::str::contains("\nAll done, no errors...\n"));
44
45
let config = Config::from_disk(temp.path().join("book.toml")).unwrap();
46
- assert_eq!(config.book.title, None);
+ assert_eq!(config.book.title.as_deref(), Some("Example title"));
47
0 commit comments