1Code::TidyAll::Plugin::UGseenrerCiocnTtrrainbsuCftooedrdem:eP:reT(ri3ld)yDAolclu:m:ePnltuagtiino:n:GenericTransformer(3)
2
3
4
6 Code::TidyAll::Plugin::GenericTransformer - A plugin to run any
7 executable as a transformer
8
10 version 0.78
11
13 # In your tidyall config
14 [GenericTransformer / JSONOrderedTidy]
15 cmd = json-ordered-tidy
16 argv = -stdout
17 ok_exit_codes = 0 1
18
20 This plugin allows you to define any executable as a transformer.
21
23 This plugin accepts the following configuration options:
24
25 cmd
26 This is the command to be run. This is required.
27
28 argv
29 This is a string containing additional arguments to be passed to the
30 command. These arguments will always be passed.
31
32 file_flag
33 This is the flag used to tell the command what file to operate on, if
34 it has one.
35
36 By default, the file is simply passed as the last argument. However,
37 many commands will want this passed with a flag like "-f", "--file", or
38 "--input".
39
40 ok_exit_codes
41 By default, any exit code other than 0 is considered an exception.
42 However, many commands use their exit code to indicate that there was a
43 validation issue as opposed to an exception.
44
45 You can specify multiple exit codes either by listing "ok_exit_codes"
46 multiple times or as a space-separate list.
47
49 Bugs may be submitted at
50 <https://github.com/houseabsolute/perl-code-tidyall/issues>.
51
52 I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".
53
55 The source code repository for Code-TidyAll can be found at
56 <https://github.com/houseabsolute/perl-code-tidyall>.
57
59 • Jonathan Swartz <swartz@pobox.com>
60
61 • Dave Rolsky <autarch@urth.org>
62
64 This software is copyright (c) 2011 - 2020 by Jonathan Swartz.
65
66 This is free software; you can redistribute it and/or modify it under
67 the same terms as the Perl 5 programming language system itself.
68
69 The full text of the license can be found in the LICENSE file included
70 with this distribution.
71
72
73
74perl v5.32.1 2C0o2d1e-:0:1T-i2d7yAll::Plugin::GenericTransformer(3)