带鱼壳的sketchtool CLI

我尝试了一段时间,以获取与cli cli初始化命令等效的鱼壳。有人可以帮忙吗?

对于鱼,如果删除'$'字符,第一行似乎起作用。传递参数的第二行,我尝试删除$,引号和几种不同的格式。在fish中找不到用于参数传递初始化的文档。

#!/bin/sh

SKETCH=$(mdfind kMDItemCFBundleIdentifier == 'com.bohemiancoding.sketch3' | head -n 1)

# pass on all given arguments
"$SKETCH/Contents/Resources/sketchtool/bin/sketchtool" "$@"

参考:https://developer.sketch.com/cli/

wal325 回答:带鱼壳的sketchtool CLI

尝试:

set SKETCH (mdfind kMDItemCFBundleIdentifier == 'com.bohemiancoding.sketch3' | head -n 1)

$SKETCH/Contents/Resources/sketchtool/bin/sketchtool $argv
本文链接:https://www.f2er.com/3134856.html

大家都在问