Skip to content

refactor: config loading and add eigen.toml template generation#13

Merged
supernovahs merged 1 commit intomainfrom
fix_create
Apr 24, 2025
Merged

refactor: config loading and add eigen.toml template generation#13
supernovahs merged 1 commit intomainfrom
fix_create

Conversation

@ad-eigen
Copy link
Copy Markdown
Contributor

Motivation:
Project commands generated confusing errors when eigen.toml was missing, especially with help flags and unimplemented commands.

Modifications:

  • Removed config loading from global Before hook
  • Moved config loading to individual commands that need it
  • Added project-specific eigen.toml generation during project creation
  • Improved error messages for missing configuration

Result:
Help commands work without eigen.toml, create command properly initializes config, and each command handles its own configuration needs independently, resulting in a more intuitive CLI experience.

**Motivation:**
Project commands generated confusing errors when eigen.toml was missing, especially with help flags and unimplemented commands.

**Modifications:**
- Removed config loading from global Before hook
- Moved config loading to individual commands that need it
- Added project-specific eigen.toml generation during project creation
- Improved error messages for missing configuration

**Result:**
Help commands work without eigen.toml, create command properly initializes config, and each command handles its own configuration needs independently, resulting in a more intuitive CLI experience.
@ad-eigen ad-eigen changed the title Refactor config loading and add eigen.toml template generation refactor: config loading and add eigen.toml template generation Apr 24, 2025
@ad-eigen ad-eigen marked this pull request as ready for review April 24, 2025 08:29
@ad-eigen ad-eigen requested a review from a team as a code owner April 24, 2025 08:29
Copy link
Copy Markdown
Contributor

@supernovahs supernovahs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM . I was also thinking about blocking other cli commands aspect when updating readme

@supernovahs supernovahs merged commit 65ecf1c into main Apr 24, 2025
7 of 8 checks passed
@afkbyte afkbyte deleted the fix_create branch May 16, 2025 15: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