Skip to content

Conversation

@newhook
Copy link
Owner

@newhook newhook commented Jan 26, 2026

Summary

This PR adds automatic mise configuration generation when creating a new co project. The generated .mise.toml file includes all CLI tools required for co to function properly.

Changes

  • New template file (internal/mise/template/mise.tmpl): Embedded mise configuration template with required tools:

    • bd - Git-backed issue tracker
    • claude - Claude Code CLI
    • gh - GitHub CLI
    • zellij - Terminal multiplexer
  • New generation function (internal/mise/template.go): GenerateConfig() function that:

    • Writes the mise template to .mise.toml in the project root
    • Skips generation if any mise config already exists (respects existing configs)
    • Uses Go's embed directive for the template
  • Updated project creation (internal/project/project.go):

    • Calls mise.GenerateConfig() in the project root directory (not main/)
    • Changed mise.Initialize() to run in project root instead of main/
    • Provides user feedback on config generation status

Resolved Issues

  • ac-dn91: co proj create should create a mise config
    • ac-dn91.1: Create mise.toml template with co requirements
    • ac-dn91.2: Add mise config generation function
    • ac-dn91.3: Integrate mise config generation into project creation

Testing

  • Review task completed with no issues found
  • The implementation respects existing mise configurations (won't overwrite)
  • Template includes helpful comments and documentation links

🤖 Generated with Claude Code

newhook and others added 4 commits January 26, 2026 17:17
Creates a template file for generating mise config in project root.
Includes comments explaining each required tool (bd, claude, gh, zellij).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds internal/mise/template.go with GenerateConfig() that creates
.mise.toml with co's required tools. Skips if config already exists.
Moves mise.tmpl to internal/mise/template/ for proper embedding.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Updates setupRepo() to generate .mise.toml in project root with co's
required tools (bd, claude, gh, zellij). Also runs mise.Initialize()
in project root instead of mainPath.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@newhook newhook merged commit 219fb19 into main Jan 26, 2026
3 checks passed
@newhook newhook deleted the feat/co-proj-create-should-create-a-mise-config branch January 26, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants