Merge pull request #316 from AleoHQ/feature/readme-generation

Add README.md generation to `leo new`
This commit is contained in:
Howard Wu 2020-08-28 20:00:53 -07:00 committed by GitHub
commit b0dcca1345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ use crate::{
};
use leo_package::{
inputs::*,
root::{Gitignore, Manifest},
root::{Gitignore, Manifest, README},
source::{LibFile, MainFile, SourceDirectory},
};
@ -95,6 +95,9 @@ impl CLI for NewCommand {
// Create the .gitignore file
Gitignore::new().write_to(&path)?;
// Create the README.md file
README::new(&package_name).write_to(&path)?;
// Create the source directory
SourceDirectory::create(&path)?;