maybe i'm missing something, i've never really used nimble, but can't you
    
    
    # Package
    
    version       = "0.1.0"
    author        = "brendo-m"
    description   = "A new awesome nimble package"
    license       = "MIT"
    srcDir        = "src"
    bin           = @["tmp"]
    
    
    # Dependencies
    
    requires "nim >= 1.7.3"
    
    import std/os
    task lambda, "build on aws lambda":
      case commandLineParams()[^1]
      of "build":
        echo "building on aws lambda..."
      of "install":
        echo "installing..."
      else:
        echo "usage: nim lambda {build/install}, got ",commandLineParams()
    
    
    Run
    
    
    ❯ nimble lambda build
      Executing task lambda in /tmp/tmp.nimble
    building on aws lambda...
    ❯ nimble lambda install
      Executing task lambda in /tmp/tmp.nimble
    installing...
    
    
    Run

Reply via email to