Skip to content

Commit 6708843

Browse files
committed
Generate a .gitgnore file
1 parent feabe4b commit 6708843

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/commands/init.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,17 @@ pub async fn init(
5252
shaders: HashMap::new(),
5353
};
5454

55-
fs::write("podzol.toml", &toml_edit::ser::to_string_pretty(&manifest)?)?;
55+
fs::write(
56+
path.join("podzol.toml"),
57+
&toml_edit::ser::to_string_pretty(&manifest)?,
58+
)?;
59+
60+
fs::write(
61+
path.join(".gitignore"),
62+
r#"# The exported modpack
63+
*.mrpack
64+
"#,
65+
)?;
5666

5767
if !fs::exists(path.join(".git"))? {
5868
git2::Repository::init(path)?;

0 commit comments

Comments
 (0)