utom / sketch-measure

Make it a fun to create spec for developers and teammates
http://utom.design/measure
MIT License
6.91k stars 596 forks source link

plugin Callable by Command Line? (like or with sketchtool) #182

Open dimitrieh opened 8 years ago

dimitrieh commented 8 years ago

@utom This is an awesome plugin, congrats on the work already done on this!

I was wondering if we could call this plugin to generate exports from the command line, like www.sketchapp.com/tool/ ?

something like: sketchtool --useplugin sketch-measure:spec-export -o outputfolder/ sketchfile.sketch

or

sketch-measure --spec-export -o outputfolder/ sketchfile.sketch

kevinbaes commented 8 years ago

That would be great!

I discussed this idea with the Sketch team and they told me :

that's currently not possible, but it's definitely a good idea, so I've filed a request in our issue tracker and we'll see what we can do : )

dimitrieh commented 8 years ago

@SUPK187 thats amazing news ;)

dimitrieh commented 8 years ago

@SUPK187 check the current implementation we use at GitLab ;) https://gitlab.com/gitlab-org/gitlab-design#repository-superpowers-

kevinbaes commented 7 years ago

@dimitrieh & @utom

We have added a feature to sketchtool that allows it to tell Sketch to run plugins (I should probably document this on a new thread). Try running sketchtool run with SketchTool 43 : )

http://sketchplugins.com/d/87-new-file-format-in-sketch-43/23

😬

dimitrieh commented 7 years ago

@kevinbaes very nice!

@utom how would we be able to run this with sketchtool run ? 😄

sketchtool run com.utom.measure commandExport --application=/Applications/Sketch\ Beta.app test.sketch doesn't seem to work

dimitrieh commented 7 years ago

@kevinbaes did you figure out how to use this? :)

kevinbaes commented 7 years ago

@dimitrieh No... :(

creeperyang commented 7 years ago

Trying to use cli too.

Related article:

  1. http://sketchplugins.com/d/225-what-did-sketch-44-break-in-your-code/
  2. http://sketchplugins.com/d/96-is-there-a-way-to-run-a-plugin-after-another-plugin/
creeperyang commented 7 years ago

A temporary alternative: https://github.com/devsigners/sketch-measure-cli.

qhxin commented 5 years ago

greate! we really need this feature