mirror of
https://github.com/boolean-maybe/tiki
synced 2026-04-21 13:37:20 +00:00
remove project config.yaml install
This commit is contained in:
parent
365b06b46e
commit
088c96869b
2 changed files with 1 additions and 19 deletions
|
|
@ -148,23 +148,6 @@ func BootstrapSystem() error {
|
|||
}
|
||||
createdFiles = append(createdFiles, tikiMarkdownPNGPath)
|
||||
|
||||
// Write default config.yaml
|
||||
defaultConfig := `logging:
|
||||
level: error
|
||||
header:
|
||||
visible: true
|
||||
tiki:
|
||||
maxPoints: 10
|
||||
appearance:
|
||||
theme: auto
|
||||
gradientThreshold: 256
|
||||
`
|
||||
configPath := GetProjectConfigFile()
|
||||
if err := os.WriteFile(configPath, []byte(defaultConfig), 0644); err != nil {
|
||||
return fmt.Errorf("write default config.yaml: %w", err)
|
||||
}
|
||||
createdFiles = append(createdFiles, configPath)
|
||||
|
||||
// Git add all created files
|
||||
gitArgs := append([]string{"add"}, createdFiles...)
|
||||
//nolint:gosec // G204: git command with controlled file paths
|
||||
|
|
|
|||
|
|
@ -55,8 +55,7 @@ func Bootstrap(tikiSkillContent, dokiSkillContent string) (*Result, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// Phase 2: Project initialization (creates dirs, seeds files, writes default config)
|
||||
// runs before LoadConfig so that config.yaml exists on first launch
|
||||
// Phase 2: Project initialization (creates dirs and seeds sample files)
|
||||
proceed, err := EnsureProjectInitialized(tikiSkillContent, dokiSkillContent)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Reference in a new issue