actionforge / graph-runner

🏃‍♀️ The core cli of Actionforge
Other
12 stars 0 forks source link

Add freeze command #15

Closed sebastianrath closed 6 months ago

sebastianrath commented 6 months ago

This PR introduces a new command called freeze, used to create self-containing executables from graphs. Usage:

$ graph-runner freeze my-http-graphl.yml --output ./http
Actionforge Graph Runner (alpha)
Downloading graph-runner from refs/heads/main
⠋  (49 kB, 736 kB/s) [0s] Unzipping graph-runner
Getting go release info
Downloading go1.22.0 from https://go.dev/dl/go1.22.0.darwin-arm64.tar.gz
 100% |████████████████████████████| (67/67 MB, 9.3 MB/s)        
Untarring go
Building binary
🚀 Binary written to /Users/sebastian/Desktop/http

In addition, this PR also removes the run command. Instead the base command will be now used to run graphs directly:

  graph-runner [filename] [flags]
  graph-runner [command]

Example

graph-runner foo.yml