From 7f6fb492c11107f4fd69106a987777b3375936e5 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Sat, 7 Jun 2025 21:10:26 +0200 Subject: [PATCH] chore: rename OPENCODE -> CRUSH --- .gitignore | 4 ++-- cmd/schema/main.go | 4 ++-- opencode-schema.json => crush-schema.json | 4 ++-- OpenCode.md => crush.md | 0 internal/config/config.go | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) rename opencode-schema.json => crush-schema.json (99%) rename OpenCode.md => crush.md (100%) diff --git a/.gitignore b/.gitignore index 36ff9c73267bcc5c7b8ece367108972dad21c1e2..a26fa7ce3a61b69bfba967e503b923bd5e2d71ce 100644 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,6 @@ Thumbs.db .env .env.local -.opencode/ +.crush/ -opencode +crush diff --git a/cmd/schema/main.go b/cmd/schema/main.go index 0be2c041451294593e6e8b6fd66f69536e159674..dd49d7256d93fa485d71ad66840f1cbe711e93b0 100644 --- a/cmd/schema/main.go +++ b/cmd/schema/main.go @@ -93,8 +93,8 @@ func generateSchema() map[string]any { "crush.local.md", "Crush.md", "Crush.local.md", - "OPENCODE.md", - "OPENCODE.local.md", + "CRUSH.md", + "CRUSH.local.md", }, } diff --git a/opencode-schema.json b/crush-schema.json similarity index 99% rename from opencode-schema.json rename to crush-schema.json index 3a035482e22817f747859e71527c6d4c585c2552..16287a73c5931ed3cb50fb90a36aff9746819919 100644 --- a/opencode-schema.json +++ b/crush-schema.json @@ -220,8 +220,8 @@ "crush.local.md", "Crush.md", "Crush.local.md", - "OPENCODE.md", - "OPENCODE.local.md" + "CRUSH.md", + "CRUSH.local.md" ], "description": "Context paths for the application", "items": { diff --git a/OpenCode.md b/crush.md similarity index 100% rename from OpenCode.md rename to crush.md diff --git a/internal/config/config.go b/internal/config/config.go index 5d0d70d470d15c8fceaa3ac6b4e6075dcd164df3..1d7786a1dd2eef536ee0e014b47c93ecbd50fa9d 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -114,8 +114,8 @@ var defaultContextPaths = []string{ "crush.local.md", "Crush.md", "Crush.local.md", - "OPENCODE.md", - "OPENCODE.local.md", + "CRUSH.md", + "CRUSH.local.md", } // Global configuration instance @@ -159,7 +159,7 @@ func Load(workingDir string, debug bool) (*Config, error) { if cfg.Debug { defaultLevel = slog.LevelDebug } - if os.Getenv("OPENCODE_DEV_DEBUG") == "true" { + if os.Getenv("CRUSH_DEV_DEBUG") == "true" { loggingFile := fmt.Sprintf("%s/%s", cfg.Data.Directory, "debug.log") // if file does not exist create it