Skip to content

Commit

Permalink
Merge pull request #36 from AdrasteonDev/main
Browse files Browse the repository at this point in the history
Correction of a bug related to logs + improvement of gitignore generation
  • Loading branch information
jolexxa authored Nov 19, 2023
2 parents d020e28 + 52ab00a commit e7dc85b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
22 changes: 22 additions & 0 deletions GodotEnv/src/common/models/Defaults.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,26 @@ public static class Defaults {
# https://github.com/chickensoft-games/GodotEnv
#
# -------------------------------------------------------------------- #

# Godot
# https://github.com/github/gitignore/blob/main/Godot.gitignore
#
# Godot 4+ specific ignores
.godot/
#
# Godot-specific ignores
.import/
export.cfg
export_presets.cfg
#
# Imported translations (automatically generated from CSV files)
*.translation
#
# Mono-specific ignores
.mono/
data_*/
mono_crash.*.json
# -------------------------------------------------------------------- #

# GodotEnv Addons
#
Expand All @@ -142,6 +162,8 @@ public static class Defaults {
# Don't ignore the editorconfig file in the addons directory.
!{ADDONS_PATH}/.editorconfig
#
# Ignore the addons cache
{CACHE_PATH}/*
# -------------------------------------------------------------------- #
""";
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public async ValueTask ExecuteAsync(IConsole console) {
log.Success("Done!");
log.Print("");
log.Success(path);
log.Print("");

await Task.CompletedTask;
}
Expand Down
3 changes: 2 additions & 1 deletion GodotEnv/src/features/addons/domain/AddonsFileRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,11 @@ public string CreateAddonsConfigurationStartingFile(string projectPath) {
var addonsIgnoreEntry = $"{Defaults.ADDONS_PATH}/*";
var addonsEditorConfigExceptionEntry =
$"!{Defaults.ADDONS_PATH}/.editorconfig";
var addonsCacheIgnoreEntry = $"{Defaults.CACHE_PATH}/*";

FileClient.AddLinesToFileIfNotPresent(
gitIgnoreFilePath,
addonsIgnoreEntry, addonsEditorConfigExceptionEntry
addonsIgnoreEntry, addonsEditorConfigExceptionEntry, addonsCacheIgnoreEntry
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public async ValueTask ExecuteAsync(IConsole console) {
log.Print("");
ExecutionContext.Godot.GodotRepo.ClearCache();
log.Success("Godot installation cache cleared.");
log.Print("");

await Task.CompletedTask;
}
Expand Down

0 comments on commit e7dc85b

Please sign in to comment.