on main help sign in
chore: rename OPENCODE -> CRUSH
commit7f6fb492c11107f4fd69106a987777b3375936e5 authorKujtim Hoxha <kujtimii.h@gmail.com> dateSat 7 Jun 2025, 21:10 (1 year ago) parent2ea3947
5 files changed+9−9
.gitignore+2−2 cmd/schema/main.go+2−2 opencode-schema.json → crush-schema.json+2−2 OpenCode.md → crush.md internal/config/config.go+3−3
.gitignore+2−2
@@ -41,6 +41,6 @@ Thumbs.db
4141.env
4242.env.local
4343
44−.opencode/
44+.crush/
4545
46−opencode
46+crush
cmd/schema/main.go+2−2
@@ -93,8 +93,8 @@ func generateSchema() map[string]any {
9393 "crush.local.md",
9494 "Crush.md",
9595 "Crush.local.md",
96− "OPENCODE.md",
97− "OPENCODE.local.md",
96+ "CRUSH.md",
97+ "CRUSH.local.md",
9898 },
9999 }
100100
opencode-schema.json → crush-schema.jsonrenamed+2−2
@@ -220,8 +220,8 @@
220220 "crush.local.md",
221221 "Crush.md",
222222 "Crush.local.md",
223− "OPENCODE.md",
224− "OPENCODE.local.md"
223+ "CRUSH.md",
224+ "CRUSH.local.md"
225225 ],
226226 "description": "Context paths for the application",
227227 "items": {
OpenCode.md → crush.mdrenamed

The content is the same.

internal/config/config.go+3−3
@@ -114,8 +114,8 @@ var defaultContextPaths = []string{
114114 "crush.local.md",
115115 "Crush.md",
116116 "Crush.local.md",
117− "OPENCODE.md",
118− "OPENCODE.local.md",
117+ "CRUSH.md",
118+ "CRUSH.local.md",
119119}
120120
121121// Global configuration instance
@@ -159,7 +159,7 @@ func Load(workingDir string, debug bool) (*Config, error) {
159159 if cfg.Debug {
160160 defaultLevel = slog.LevelDebug
161161 }
162− if os.Getenv("OPENCODE_DEV_DEBUG") == "true" {
162+ if os.Getenv("CRUSH_DEV_DEBUG") == "true" {
163163 loggingFile := fmt.Sprintf("%s/%s", cfg.Data.Directory, "debug.log")
164164
165165 // if file does not exist create it