Removed v2 tree

It finally became do-able with go 1.11
This commit is contained in:
Unknown
2018-09-03 02:37:37 -04:00
parent 51b05140fe
commit de16f2c85f
66 changed files with 31 additions and 3291 deletions

View File

@@ -1,3 +1,4 @@
![logo](logo.png)
# runner
[![GoDoc](https://godoc.org/github.com/sbrow/ps/runner?status.svg)](https://godoc.org/github.com/sbrow/runner) [![Build Status](https://travis-ci.org/sbrow/runner.svg?branch=master)](https://travis-ci.org/sbrow/runner) [![Coverage Status](https://coveralls.io/repos/github/sbrow/runner/badge.svg?branch=master)](https://coveralls.io/github/sbrow/runner?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/sbrow/ps/runner)](https://goreportcard.com/report/github.com/sbrow/ps/runner)

View File

@@ -1,4 +1,4 @@
//go:generate sh -c "godoc2md -template ../.doc.template github.com/sbrow/ps/runner > README.md"
//go:generate sh -c "godoc2md -template ../.doc.template github.com/sbrow/ps/v2/runner > README.md"
// Package runner runs the non-go code that Photoshop understands,
// and passes it to back to the go program. Currently, this is
@@ -17,6 +17,7 @@ import (
// Windows is the runner Windows Operating Systems.
// It runs Visual Basic Scripts.
// // TODO(sbrow): Separate 32 and 64 bit Windows runners.
var Windows = Runner{
Cmd: "cscript.exe",
Args: []string{"/nologo"},

View File

@@ -0,0 +1,2 @@
#include lib.js
var stdout = newFile(arguments[0]);stdout.writeln(app.activeDocument.fullName);stdout.close();

View File

@@ -1,4 +1,5 @@
#include lib.js
alert(app.activeDocument.path)
var f = newFile(arguments[0]);
for (var i = 0; i < arguments.length; i++) {
f.writeln(arguments[i]);