Skip to content

Commit 2ebf10d

Browse files
committed
chore(config): update default config path and ignore patterns
1 parent 4f0a7c7 commit 2ebf10d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.ai-docs.config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ aIAgentMemoryContextPath:
1111
Cursor: ".cursor/rules"
1212

1313
ignorePatterns:
14-
- "/memory-bank/"
15-
- "/.ai-memory/"
16-
- "/.gemini/context/"
17-
- "/.cursor/rules/"
14+
- "memory-bank/"
15+
- "CLAUDE.md"
16+
- "GEMENI.md"
17+
- ".cursor"

cmd/init.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ aIAgentMemoryContextPath:
201201
Cursor: ".cursor/rules"
202202
203203
ignorePatterns:
204-
- "memory-bank/"
204+
- "memory-bank"
205205
- "CLAUDE.md"
206206
- "GEMINI.md"
207-
- ".cursor/rules/"
207+
- ".cursor"
208208
`
209209
return os.WriteFile(path, []byte(content), 0644)
210210
}

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func Execute() {
3030
}
3131

3232
func init() {
33-
rootCmd.PersistentFlags().StringVar(&configPath, "config", "", "config file path (default: ai-docs.config.yml)")
33+
rootCmd.PersistentFlags().StringVar(&configPath, "config", "", "config file path (default: .ai-docs.config.yml)")
3434
rootCmd.PersistentFlags().BoolVar(&dryRun, "dry-run", false, "show what would be done without making changes")
3535
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "verbose output")
3636
}

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type Config struct {
2424

2525
func LoadConfig(configPath string) (*Config, error) {
2626
if configPath == "" {
27-
configPath = "ai-docs.config.yml"
27+
configPath = ".ai-docs.config.yml"
2828
}
2929

3030
data, err := os.ReadFile(configPath)

0 commit comments

Comments
 (0)