Skip to content

Commit

Permalink
Expand default Bender.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
micprog committed Jan 8, 2024
1 parent 3d7b6ec commit e9d82ad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cmd/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn run(_matches: &ArgMatches) -> Result<()> {
.output()?
.stdout,
)
.unwrap_or("".to_string());
.unwrap_or("Your Name".to_string());
let name = &name
.strip_suffix("\r\n")
.unwrap_or(name.strip_suffix('\n').unwrap_or(&name));
Expand All @@ -47,7 +47,7 @@ pub fn run(_matches: &ArgMatches) -> Result<()> {
.output()?
.stdout,
)
.unwrap_or("".to_string());
.unwrap_or("[email protected]".to_string());
let email = &email
.strip_suffix("\r\n")
.unwrap_or(email.strip_suffix('\n').unwrap_or(&email));
Expand All @@ -62,6 +62,9 @@ pub fn run(_matches: &ArgMatches) -> Result<()> {
writeln!(
file,
"\
# A more detailed description of the manifest format `Bender.yml` can be found here:
# https://github.com/pulp-platform/bender#manifest-format-benderyml
package:
name: {}
authors:
Expand Down

0 comments on commit e9d82ad

Please sign in to comment.