| Catmandu::Cmd::run(3pm) | User Contributed Perl Documentation | Catmandu::Cmd::run(3pm) |
NAME¶
Catmandu::Cmd::run - run a fix command
EXAMPLES¶
# Run an interactive Fix shell
$ catmandu run
# Execute the fix script
$ catmandu run myfixes.txt
# Execute the scripts with options passed
$ catmandu run --var source=bla myfixes.txt
$ cat myfixes.txt
add_field(my_source,{{source}})
# Or create an execurable fix script:
#!/usr/bin/env catmandu run
do importer(Mock,size:10)
add_field(foo,bar)
add_to_exporter(.,JSON)
end
| 2025-01-17 | perl v5.40.0 |