From f239907bb2e5e4040e191e95661de535f5592933 Mon Sep 17 00:00:00 2001 From: Spencer Date: Tue, 10 Jul 2018 16:46:51 -0400 Subject: [PATCH] Updated TODOs --- README.md | 8 +++----- document.go | 2 +- ps.go | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 76b194e..01b2c06 100644 --- a/README.md +++ b/README.md @@ -38,13 +38,11 @@ $ go get -u github.com/sbrow/ps `sbrow:` (2) Make TextLayer a subclass of ArtLayer. -`sbrow:` Reduce cylcomatic complexity +`sbrow:` Reduce cylcomatic complexity of ActiveDocument(). -`sbrow:` Does funky things when passed invalid layername. +`sbrow:` refactor Close to Document.Close -`sbrow:` Move to Document - -`sbrow:` get rid of the semicolon. +`sbrow:` get rid of the semicolon at the end of JSLayer. ## Documentation For full Documentation please visit https://godoc.org/github.com/sbrow/ps diff --git a/document.go b/document.go index eec026b..41e38c6 100644 --- a/document.go +++ b/document.go @@ -116,7 +116,7 @@ func (d *Document) LayerSet(name string) *LayerSet { // ActiveDocument returns document currently focused in Photoshop. // -// TODO(sbrow): Reduce cylcomatic complexity +// TODO(sbrow): Reduce cylcomatic complexity of ActiveDocument(). func ActiveDocument() (*Document, error) { log.Println("Loading ActiveDoucment") d := &Document{} diff --git a/ps.go b/ps.go index d895e92..6fe2c5b 100644 --- a/ps.go +++ b/ps.go @@ -40,7 +40,7 @@ func ApplyDataset(name string) error { } // Close closes the active document in Photoshop, using the given save option. -// TODO(sbrow): Move to Document +// TODO(sbrow): refactor Close to Document.Close func Close(save SaveOption) error { _, err := runner.Run("close", fmt.Sprint(save)) return err @@ -106,7 +106,7 @@ func Init() error { // The output always ends with a semicolon, so if you want to access a specific // property of the layer, you'll have to trim the output before concatenating. // -// TODO(sbrow): get rid of the semicolon. +// TODO(sbrow): get rid of the semicolon at the end of JSLayer. func JSLayer(path string) string { pth := strings.Split(path, "/") js := "app.activeDocument"