From cc4aead1fccd6665769de3e98b1d3de86e6db6ea Mon Sep 17 00:00:00 2001 From: Michel Santos Date: Mon, 13 Apr 2026 09:14:35 -0400 Subject: [PATCH] CLI: Improve the embedding process of workspace files used for the onboard process --- cmd/picoclaw/internal/onboard/command.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/picoclaw/internal/onboard/command.go b/cmd/picoclaw/internal/onboard/command.go index 4be19b2a5..6fd573e63 100644 --- a/cmd/picoclaw/internal/onboard/command.go +++ b/cmd/picoclaw/internal/onboard/command.go @@ -6,6 +6,12 @@ import ( "github.com/spf13/cobra" ) +// Prepare an embedded file system +// 1. Remove any vestigial `workspace` folder that might be present +// 2. Duplicate `workspace` folder into the module +// 3. Embed the module's `workspace` folder into the executable +// +//go:generate rm -rf ./workspace //go:generate cp -r ../../../../workspace . //go:embed workspace var embeddedFiles embed.FS