Just as with any other language, editing CEL in a single quoted line is hard. I've been planning to add a policyctl code subcommand that lets you work with the policy code. One subcommand could be policyctl code edit (or backwards?) and that would open the policy CEL (or other) code in your editor to allow you to change it and replace the code in the json field when saved.
This same code subcommand should allow the user to patch the code field from a file as well as export it.
Just as with any other language, editing CEL in a single quoted line is hard. I've been planning to add a
policyctl codesubcommand that lets you work with the policy code. One subcommand could bepolicyctl code edit(or backwards?) and that would open the policy CEL (or other) code in your editor to allow you to change it and replace the code in the json field when saved.This same code subcommand should allow the user to patch the code field from a file as well as export it.