mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
Updated TODOs
This commit is contained in:
@@ -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.
|
||||
|
||||
## <a name="pkg-doc">Documentation</a>
|
||||
For full Documentation please visit https://godoc.org/github.com/sbrow/ps
|
||||
|
||||
@@ -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{}
|
||||
|
||||
4
ps.go
4
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"
|
||||
|
||||
Reference in New Issue
Block a user