Pnyx can be used directly from the command-line. Use the CMD interface for quick, one-time usage or for prototyping. The pnyx.cmd project uses a YAML file of commands, which map to commands of the library's fluent API. As an alternative, C# scripts can be used in place of YAML. Whatever your preference, use the CMD to run ad-hoc Pnyx commands. Finally, CMD can be used to expose your project's custom filters and transforms to the command-line and scripting.
user@machine:$ pnyx -i "[readString: hello world]" hello world user@machine:$ pnyx -i "[readString: hello world, sed: ['l','x','g']]" hexxo worxd user@machine:$ pncs -i 'readString("hello world")' C# hello world user@machine:$ pncs -i 'readString("hello world"); sed("l", "x", "g");' C# hexxo worxd
Pnyx CMD comes in 2 formats: YAML and C# scripts.