{
  "name": "yomo",
  "description": "CLI interface for YoMo",
  "subcommands": [
    {
      "name": "init",
      "description": "Initial an example StreamFunction",
      "options": [
        {
          "names": [
            "--rx"
          ],
          "description": "Generate Rx code template"
        }
      ],
      "args": [
        {
          "name": "function name",
          "description": "StreamFunction name to initialize locally"
        }
      ]
    },
    {
      "name": "build",
      "description": "Build a StreamFunction to WebAssembly",
      "options": [
        {
          "names": [
            "--target"
          ],
          "description": "Build to wasm or binary",
          "takes_arg": true,
          "arg": {
            "name": "wasm"
          }
        },
        {
          "names": [
            "-m",
            "--modfile"
          ],
          "description": "Custom go.mod filepath",
          "takes_arg": true,
          "arg": {
            "name": "module"
          }
        }
      ],
      "args": [
        {
          "name": ".go file",
          "description": "The .go file to build"
        }
      ]
    },
    {
      "name": "run",
      "description": "Run a wasm stream function",
      "options": [
        {
          "names": [
            "-z",
            "--zipper"
          ],
          "description": "Zipper endpoint this StreamFunction will connect to"
        },
        {
          "names": [
            "-n",
            "--name"
          ],
          "description": "Specify the name of this StreamFunction"
        }
      ],
      "args": [
        {
          "name": ".wasm file",
          "description": "The .wasm file to run"
        }
      ]
    }
  ],
  "options": [
    {
      "names": [
        "--help",
        "-h"
      ],
      "description": "Show help for yomo"
    }
  ]
}
