首页 > 解决方案 > Ballerina 模块元数据文档?

问题描述

在 Ballerina Central 中,我看到带有关键字、版本兼容性、作者等的模块。除了Ballerina.toml. 是否有关于如何设置隐藏在某处的所有模块信息的完整指南?我真的很想警告人们,我要推送的模块仅与 Swan Lake 预览版兼容。

标签: ballerina

解决方案


在 Ballerina.toml 中,您可以指定模块信息,如下所示。

orgName= "hevayo"
Version= "1.2.3"
license= "Apache-2.0"
authors= ["hevayo"]
keywords= ["ballerina", "Twitter", "endpoint", "connector"]
repository= "https://github.com/hevayo/module-twitter"

更详细的解释可以在Ballerina 规范repo 中找到。

要警告人们兼容性,您可以在 Module.md 文件中提及它,该文件将用于在芭蕾舞演员中心生成模块页面。


推荐阅读