Fix init commands #64

Closed
sameh-farouk wants to merge 1 commit from development-fix-init into development
Member
  • passes TOOLS_DIR env var so install.nu finds the modules directory
  • Fix function defined as main instead of "init main"

fixes

- passes TOOLS_DIR env var so install.nu finds the modules directory - Fix function defined as main instead of "init main" fixes - https://forge.ourworld.tf/lhumina_code/hero_skills/issues/66 - https://forge.ourworld.tf/lhumina_code/hero_skills/issues/65
sameh-farouk removed their assignment 2026-03-24 15:39:09 +00:00
Author
Member

Superseded. Both underlying issues are resolved in current development via different commits than this PR proposed:

  • #65 (TOOLS_DIR not reaching install): install.sh:564 now writes $env.HERO_TOOLS_DIR = '<tools_dir>' into the generated config.nu, which init.nu:23 reads. Different env var name (HERO_TOOLS_DIR instead of TOOLS_DIR) — same outcome.
  • #66 (init main parser error): init.nu:85 is now export def --env "init main" [].

Additionally, tools/install.nu was replaced by tools/install.sh (commit 98e59d0 refactor: migrate install.nu references to install.sh), so this branch's diff wouldn't apply even without the rebase conflict.

Closing.

Superseded. Both underlying issues are resolved in current `development` via different commits than this PR proposed: - #65 (TOOLS_DIR not reaching install): `install.sh:564` now writes `$env.HERO_TOOLS_DIR = '<tools_dir>'` into the generated `config.nu`, which `init.nu:23` reads. Different env var name (`HERO_TOOLS_DIR` instead of `TOOLS_DIR`) — same outcome. - #66 (`init main` parser error): `init.nu:85` is now `export def --env "init main" []`. Additionally, `tools/install.nu` was replaced by `tools/install.sh` (commit `98e59d0 refactor: migrate install.nu references to install.sh`), so this branch's diff wouldn't apply even without the rebase conflict. Closing.
sameh-farouk closed this pull request 2026-04-21 17:26:23 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_skills!64
No description provided.