arakoodev / EdgeChains

EdgeChains.js is Full-Stack GenAI library. Front-end, backend, apis, prompt management, distributed computing. All core prompts & chains are managed declaratively in jsonnet (and not hidden in classes)
https://www.arakoo.ai/
GNU Affero General Public License v3.0
352 stars 72 forks source link

Fix execution in linux #59

Open pizzaboi21 opened 1 year ago

pizzaboi21 commented 1 year ago

If you download the latest artifact from BuildaAndRun Action, and cd into Script folder, Execution of this command :- java -jar flyfly.jar jbang Flyopenaiwiki.java Edgechain.jar is not working in linux.

Flyfly is executing java -cp jbang.jar dev.jbang.Main --cp Edgechain.jar Flyopenaiwiki.java and then in next step executing java -classpath classPath MainClass check FlySpring/flyfly/src/main/java/com/flyspring/flyfly/commands/jbang/JbangCommand.java

This process works only in cmd/powershell [windows]

For Linux, this method works:-

  1. Execute java -cp jbang.jar dev.jbang.Main --cp Edgechain.jar Flyopenaiwiki.java
  2. Copy the output and execute.

Automate these two processes just like it is for Windows in JbangCommand.java, making sure that Flyfly detects the OS and executes the right method(s).

anuran-roy commented 1 year ago

85 Fixes this. Could this issue please be assigned to me? #86 fixes this for Mac or any other POSIX-based systems as well.