Directory support for amber build#1090
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughBuild handling was extracted to Changes
Sequence DiagramsequenceDiagram
participant CLI as CLI Handler
participant Build as Build Logic
participant Discover as File Discovery
participant Compile as Compiler
participant FS as File System
CLI->>Build: handle_build(input, output, target)
alt input is directory
Build->>FS: stat/check input directory
Build->>Discover: find_amber_files(dir)
Discover->>FS: WalkDir traversal (follow symlinks)
Discover-->>Build: list of .ab files
loop each .ab file
Build->>FS: compute relative .sh path
Build->>FS: create parent directories if missing
Build->>Compile: compile Amber file -> script
Compile-->>Build: compiled script content
Build->>FS: write .sh file
end
else single file or stdin
Build->>Compile: compile single input (or stdin)
Compile-->>Build: compiled script content
Build->>FS: write to output path or stdout
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
|
So just to understand compiles every *.ab file to a dedicated *.sh? I like the idea and also the new Can you address the Coderabbit's review? |
|
@Mte90, yes you understood correctly, glad you like it. |
|
@coderabbitai resume |
✅ Actions performedReviews resumed. |
Added directory support for
amber buildlike described in #1070.Summary by CodeRabbit
New Features
Refactor
Tests