Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Implementing ^import-module functionality
There is really nothing very advanced about how Harness imports modules across the wire. The basic protocol is as follows:
- Client sends a
<rf>tag to indicate that a module is about to be sent
- Server receives tag and starts accumulating the following bytes received as a single script. This is basically automating the process as if the user were manually typing in an entire script.
- The client then opens the local ps1 file and sends it as a byte stream to the server.
- Once the transfer is complete the client then sends a closing
</rf>tag to the server to indicate it's ok to process the script