用于定义命令行工具(的输入参数)的任何通用(xml?)格式?

发布于 2024-11-19 20:21:33 字数 345 浏览 9 评论 0原文

是否有用于定义命令行工具(例如输入参数和输出)的通用(xml 或类似)格式?

该格式必须足够详细,才能作为自动生成填写工具所需输入的向导的基础。

我已经找到了由生物信息学集成工作台 Galaxy 创建的基于 xml 的格式。问题是 Galaxy toolconfig 格式的 xml 文件不是独立的,而是需要一个附带的 python (.py) 文件来执行一些逻辑,并且不遵循任何定义的格式,因此很难移植到其他语言。

所以,寻找其他建议!

Is there anything such as a general (xml or similar) format for defining command line tools, such as input params and outputs?

The format must be detailed enough to serve as the basis for automatically generating wizards for filling in the inputs required by a tool.

I already found the xml-based format created by Bioinformatics integration workbench Galaxy. Problem is that the xml files in Galaxy toolconfig format are not independent, but need an accompanying python (.py) file that does some logic, and which does not follow any defined format, making it hard to port to other languages.

So, looking for other suggestions!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

〃温暖了心ぐ 2024-11-26 20:21:33

docbooks 集合包含命令行工具的 XML 定义。

我很高兴这有帮助。这是一个有趣的问题。

PS

您是否考虑过使用类似java的配置文件?即,

$ cat any.properties
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false

虽然我正在学习 XML,但在我所从事的工作规模上我仍然没有看到太多优势,是吗? ;-)

The docbooks collection includes XML definitions for command-line tools.

I'm glad that helped. It was a interesting question.

P.S.

Did you consider using a java like config file? i.e.

$ cat any.properties
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false

While I am learning about XML, I still don't preceive much advantage at the scale that I work at, do you? ;-)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文