From d47e82ceae08c5e895f0cf7741aa916e3b925006 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Wed, 18 Nov 2020 11:40:53 -0600 Subject: [PATCH] Initial .gitignore commit Signed-off-by: jolheiser --- README.md | 4 ++-- template.toml | 7 +------ template/.gitignore | 8 ++++++++ template/.gitkeep | 1 - 4 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 template/.gitignore delete mode 100644 template/.gitkeep diff --git a/README.md b/README.md index 4b65cbd..19eb214 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# tmpl templates +# .gitignore Template -Check out the various branches for some basic examples of templates. +A basic .gitignore template for [tmpl](https://gitea.com/jolheiser/tmpl) ## License diff --git a/template.toml b/template.toml index 1507fc7..2695d9c 100644 --- a/template.toml +++ b/template.toml @@ -1,6 +1 @@ -# template.toml -# Write any template args here to prompt the user for, giving any defaults/options as applicable - -name = "MyProject" - -lang = ["Go", "Rust", "Python"] +binary = "" diff --git a/template/.gitignore b/template/.gitignore new file mode 100644 index 0000000..34f1230 --- /dev/null +++ b/template/.gitignore @@ -0,0 +1,8 @@ +# GoLand +.idea/ + +{{if ne .binary ""}} +# Binaries +/{{.binary}} +/{{.binary}}.exe +{{end}} \ No newline at end of file diff --git a/template/.gitkeep b/template/.gitkeep deleted file mode 100644 index b4bd1aa..0000000 --- a/template/.gitkeep +++ /dev/null @@ -1 +0,0 @@ -Delete this file and put something else here! \ No newline at end of file