Git Product home page Git Product logo

Comments (2)

anycodes avatar anycodes commented on June 22, 2024 2

@hanxie-crypto 目前已经完成修复
@anycodes 已经完成了发版

最新版本号:1.0.2可正常使用魔法变量。
使用方法参考:http://www.serverless-devs.com/docs/docs/cli/others/yaml-config.html

from serverless-devs.

anycodes avatar anycodes commented on June 22, 2024

文件demo.yaml

Global:
  Name: "myname"

MyFunctionDemo1:
  Component: test
  Provider: alibaba
  Properties:
    Name: ${Global.Name} # 预期结果 myname
    EnvPath: ${Env(PATH)} # 预期结果 环境变量的PATH
    FilePath: ${File(./test.yaml)} # 预期结果 abc: cde
    Key1: Value1

MyFunctionDemo2:
  Component: test
  Provider: alibaba
  Properties:
    Key1Output: ${MyFunctionDemo1.Output.Key1} # 预期结果 Value1
    Key1Input: ${MyFunctionDemo1.Properties.Key1} # 预期结果 Value1
    Path: ./src # 非${}结构的不做转译, 预期结果./src
    PathList: 
      - ./aaa # 非${}结构的不做转译, 预期结果./aaa
    

文件test.yaml

abc: cde

from serverless-devs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.