有没有这样一种工具或者框架可以通过 GUI 来运行一些脚本

2021-01-20 21:33:09 +08:00
 wellhome
我自己在 mac 上写了一些 shell, 但是我不想打开 terminal 来运行它们,我希望有一个 GUI, 我打开 GUI,点击我想运行的 shell,这个 shell 在后台就自动运行了, 然后把结果 pinint 到 GUI 上。
1773 次点击
所在节点    程序员
13 条回复
levelworm
2021-01-20 21:46:27 +08:00
感觉有点类似文件管理器。。。
felixcode
2021-01-20 21:51:32 +08:00
你说的是 Windows 桌面上的 bat 文件。
AmrtaShiva
2021-01-20 22:18:08 +08:00
Go 语言可以封装个简单的 ui
shell 用 os/exec 包 运行之后把内容输出到文件再去读出来返回到 UI
minamike
2021-01-20 22:30:11 +08:00
Alfred
keyboard maestro
甚至自带的 Automator 都可以
infun
2021-01-20 22:34:08 +08:00
Jupyter
infun
2021-01-20 22:35:44 +08:00
utools 也可以, 提升效率的利器,推荐
gppola666
2021-01-20 22:57:16 +08:00
打开文件夹,点击 shell 文件( shell 脚本最后加一行 read; 防止 shell 运行完直接退出),然后弹出一个 terminal 显示结果
wellhome
2021-01-20 23:00:04 +08:00
我就是不想打字,想鼠标点一点。
wellhome
2021-01-20 23:04:45 +08:00
找到个回答
Platypus is a developer tool for the Mac OS X operating system. It creates native Mac OS X applications from interpreted scripts such as shell scripts or Perl, Ruby and Python programs. This is done by wrapping the script in an application bundle along with a native executable binary that runs the script.
supersu
2021-01-21 12:36:07 +08:00
特地登陆一下账号,我知道一个巨牛逼的 python 框架,还亲身体验过把 python 脚本转化为 gui 应用,加我微信 Baksmali, 有偿告知和帮调代码
zzazzx
2021-01-21 13:36:22 +08:00
有偿告知和帮调试代码.....
wellhome
2021-01-21 14:03:22 +08:00
@supersu 我谢谢你哦
Areym
2021-01-21 17:48:55 +08:00
utools 里面有个快捷命令插件

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/746827

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX