BOUNDARY. Introspect and run any GIMP PDB procedure, through hive-gimp.py forms only.
(pdb/procedures g :match "plug-in-.*") ; Outcome, :value the names (pdb/describe g "plug-in-despeckle") ; Outcome, :value ProcedureInfo (pdb/run! g "gimp-drawable-invert" {:drawable 12})
target is a session {:transport t} or a transport. Every function
answers an Outcome. The forms come from hive-gimp.pdb.forms, the
decisions from hive-gimp.pdb.plan and hive-gimp.pdb.derive; this
namespace only sends and labels.
run! takes kebab-case keyword args, describes the procedure, and runs it
through the same coercion a catalogued command gets
(hive-gimp.command/->command over the derived descriptor).
BOUNDARY. Introspect and run any GIMP PDB procedure, through hive-gimp.py
forms only.
(pdb/procedures g :match "plug-in-.*") ; Outcome, :value the names
(pdb/describe g "plug-in-despeckle") ; Outcome, :value ProcedureInfo
(pdb/run! g "gimp-drawable-invert" {:drawable 12})
`target` is a session `{:transport t}` or a transport. Every function
answers an `Outcome`. The forms come from `hive-gimp.pdb.forms`, the
decisions from `hive-gimp.pdb.plan` and `hive-gimp.pdb.derive`; this
namespace only sends and labels.
`run!` takes kebab-case keyword args, describes the procedure, and runs it
through the same coercion a catalogued command gets
(`hive-gimp.command/->command` over the derived descriptor).(describe target name)The ProcedureInfo of procedure name. An unknown name is
:gimp/unknown-procedure.
The `ProcedureInfo` of procedure `name`. An unknown name is `:gimp/unknown-procedure`.
(procedures target & {:keys [match]})PDB procedure names, sorted; :match is a regex over the name.
PDB procedure names, sorted; `:match` is a regex over the name.
(run! target name args)Run procedure name with kebab-case keyword args, coerced against the
procedure's live description. Run mode is always non-interactive.
Run procedure `name` with kebab-case keyword `args`, coerced against the procedure's live description. Run mode is always non-interactive.
(run-spec target spec params)Run spec with the wire params of a built GimpCommand.
Run `spec` with the wire `params` of a built `GimpCommand`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |