从命令行运行 sublime 插件? [英] Run a sublime plugin from the command line?

查看:49
本文介绍了从命令行运行 sublime 插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从命令行运行 sublime 插件?

how can I run a sublime plugin from the command line?

我读过一个 subl --command 但它似乎是用于 osx 而我在 Windows 上.http://www.sublimetext.com/docs/2/osx_command_line.html我看不到任何可以调用插件的东西,而且这些命令似乎不适用于 sublime_text.exe

I have read of a subl --command but it seems to be for osx and i'm on windows. http://www.sublimetext.com/docs/2/osx_command_line.html I see nothing there to call a plugin, and the commands don't seem to work for sublime_text.exe

我在 Windows 上,使用 sublime_text.exe

i'm on Windows, with sublime_text.exe

推荐答案

Sublime Text 插件不提供命令行界面.

Sublime Text plugins do not offer command line interfaces.

很多时候,Sublime Text 插件会包装一个外部命令(csslint、jshint 等),该命令由插件作为子进程运行.因为您的问题没有指定您要运行哪个插件,所以无法判断该插件是否基于外部程序.

Many times Sublime Text plugins wrap an external command (csslint, jshint, etc.) which is run as a subprocess by the plugin. Because your question does not specify which plugin you want to run it is impossible to tell whether or not this plugin is based on an external program.

我更愿意建议您从更深层次的角度提出问题我如何从命令行解决问题 X",因为听起来您从错误的角度处理问题.

I'd rather suggest you to ask your question in more sense "How do I solve problem X from the command line" as it sounds you are approaching the problem from the wrong angle.

这篇关于从命令行运行 sublime 插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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