From 535b9f0aa0e10a58077f3ba76b309f23911c7422 Mon Sep 17 00:00:00 2001 From: raychu86 Date: Fri, 28 Aug 2020 18:47:37 -0700 Subject: [PATCH] Add README.md generation to leo new --- leo/commands/new.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/leo/commands/new.rs b/leo/commands/new.rs index 1ceec67fed..74e3d52251 100644 --- a/leo/commands/new.rs +++ b/leo/commands/new.rs @@ -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)?;