Windows是否有Moustache的独立的,可移植的命令行实现? [英] Is there a standalone, portable command line implementation of Mustache for windows?

查看:70
本文介绍了Windows是否有Moustache的独立的,可移植的命令行实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在用于Windows的简单,独立,可移植的Mustache发行版,使我可以完全按照

Is there a simple, standalone, portable, existing distribution of Mustache for windows that lets me invoke Mustache exactly as specified (or as close as possible) in the mustache(1) manual?

cat data.yml template.mustache | mustache

在任何平台上,我都找不到关于如何实际获取名为mustache来使用使用胡子的可执行文件的任何解释,尽管我现在主要对Windows感兴趣.

I can't find any explanation of how to actually acquire an executable called mustache to use mustache in this way - on any platform, although I'm primarily interested in Windows right now.

据我所知,在胡须主页上列出的胡须的各种实现方式大多是库,而不是可以通过这种方式调用的独立应用程序.

As far as I can tell, the various implementations of mustache listed on the mustache homepage are mostly libraries, rather than standalone applications that can be invoked in this way.

理想情况下,我正在寻找以下内容:

Ideally, I'm looking for something that's:

  • 独立-我正在寻找可以从命令行而不是库调用的内容.我正计划在自动CI构建过程中生成输出.
  • 可移植-我应该能够将所需的所有内容捆绑到源代码管理中,而无需预先安装任何内容(由于我的构建可以在许多构建代理中的一个上运行,所以我不希望维护多个代理上的预装软件套件);也无法连接到互联网以下载库.理想情况下,便携式包装应非常容易捆绑.
  • Standalone - I am looking for something I can invoke from the command line, not a library. I am planning to generate output as part of my automated CI build.
  • Portable - I should be able to bundle everything I need into source control, without having to preinstall anything (since my build may run on one of many build agents, I do not wish to maintain a suite of preinstalled software on multiple agents); nor can I connect to the internet to download libraries. Ideally the portable packaging should be fairly straightforward to bundle.

如果此功能不可用,那么我有兴趣尽可能地靠近-例如如果我必须预安装python,但不是需要运行连接到互联网的安装程序.

If this isn't available then I'm interested in getting as close as possible - e.g. if I have to preinstall python but not needing to run an installer which connects to the internet.

如果我有麻烦的话,我已经准备好放弃无预装",因为它有可能已经打包在我们组织中(例如python或ruby),但没有打包给单个库.

I'm prepared to concede on the "no preinstall" if it's something I have a cat in hell's chance of already having packaged up at our organisation (e.g. python or ruby) but not for individual libraries.

推荐答案

来自文档:

安装

如果您安装了RubyGems:

If you have RubyGems installed:

宝石安装胡子

请参见 https://mustache.github.io/mustache.1.html 页面底部

这篇关于Windows是否有Moustache的独立的,可移植的命令行实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆