wtfzambo opened a new pull request, #26:
URL: https://github.com/apache/openserverless-cli/pull/26

   # Summary of Changes
   
   1. Build Process (cli/Taskfile.yml):
   - Added a new task clone-embedded-tasks that clones the 
apache/openserverless-task repository into cli/embedded-tasks using the branch 
specified in branch.txt.
   - Updated the build task to depend on clone-embedded-tasks and include the 
cloned files as sources for the Go build.
   
   2. Embedding Logic (cli/embedded.go):
   - Created a new file cli/embedded.go that uses Go's //go:embed directive to 
include the embedded-tasks folder in the binary.
   - Implemented ExtractEmbeddedTasks() which extracts the embedded tasks to 
~/.ops/.olaris if they don't already exist.
   
   3. Runtime Logic (cli/main.go):
   - Modified Main() to call ExtractEmbeddedTasks() if the tasks are not found 
in the usual locations.
   - This ensures the CLI is self-contained and works offline on the first run.
   
   4. Task Discovery (cli/prepare.go):
   - Updated locateOpsRoot() to check ~/.ops/.olaris as a last resort before 
attempting to download tasks from GitHub.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to