更新时间:2023-02-28 GMT+08:00

VS Code-plugin

  1. 获取VS Code插件
  2. 下载安装VS Code后,手动安装funcitongraph-tools。如图1所示。

    图1 安装funcitongraph-tools

  3. 添加相应的文件夹,如图2所示。

    图2 添加文件夹

  4. 单击鼠标右键,选择“fgs.createFunction”,选择相应的“runtime”语言创建函数。如图3所示。

    图3 创建函数
    创建函数时,会自动生成对应的配置文件“functiongraph.yaml”和“index.js”。如图4所示。
    图4 配置文件

  5. 单击鼠标右键,选择“fgs.createFunctionBasedOnTemplate”,创建函数模板。
  6. 单击鼠标右键,选择“fgs.exportFunction”,可以导出函数,上传至functiongraph服务。