Commit 2b56c52
fix(ada): make the Ada modshells build (it had never compiled) (#67)
## What
Makes the Ada `modshells` implementation actually compile, so it can be
deployed as the canonical binary. The Ada sources had never built.
## Fixes
- **`modshells.adb`** — add `use type Shell_Manager.Shell_Status` so the
enum `=` operator is directly visible.
- **`config_store.adb`** — `Ada.Environment_Variables.Value` returns
`String` (not `String_Access`); use `Exists`+`Value`. Drop the
nonexistent `Ada.Directories.Separator` (use `'/'`). Correct the default
config root to `~/.config/modshells` (was a stray
`~/.config/nushell/modshells` that would mis-scaffold).
- **`shell_manager.adb`** — fix 32 invalid Ada string escapes (`\"` →
`""`) in the shell-sourcing-block generator; same `Value`/separator
fixes; qualify the ambiguous `Ada.Directories.Name_Error | Use_Error`.
- **`modshells.gpr`** — point `Main` at `modshells.adb` (was a package
body).
## Build
Builds clean with `gnatmake` (FSF GNAT 13.3):
```
gnatmake -o bin/modshells src/main/modshells.adb \
-Isrc/main -Isrc/config_store -Isrc/shell_manager -Isrc/shell_validator -D obj
```
`gprbuild` is separately broken in this environment (GPRBUILD Pro 18.0w
cannot find the FSF compiler) — not addressed here.
## Verification
Sandbox-tested (isolated `$HOME` + `MODSHELLS_CONFIG_PATH`): creates the
`core/tools/misc/os/ui` structure, detects shells, and injects sourcing
blocks with correct quoting, backing up rc files first.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Mistral Vibe <vibe@mistral.ai>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e886b83 commit 2b56c52
44 files changed
Lines changed: 312 additions & 56 deletions
File tree
- .claude
- .github
- ISSUE_TEMPLATE
- copilot
- workflows
- .machine_readable/6a2
- docs
- examples
- src
- config_store
- main
- shell_manager
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | | - | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments