apim-policy-utils
Version:
An XML file scripts maniputaling and debugging tool targeting to help working with Azure APIM Policy files in xml format.
47 lines (38 loc) ⢠1.77 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.cliHelp = exports.separator = void 0;
const getVersion_1 = require("./getVersion");
exports.separator = "// ================== <Generated Separator. Please don't edit this line> ==================";
exports.cliHelp = `
š Welcome to apim-policy-utils!
ā
Version: ${(0, getVersion_1.getVersion)()}
ā
Usage: apim-policy-utils <command> <directory path>
š Examples:
$ apim-policy-utils -c|--combine path/to/policies
$ apim-policy-utils -e|--extract path/to/scripts path/to/policies(optional)
š Here's what each command does:
š„ extract: Extracts inline policies and policy sets from XML files in a directory and generates .csx files for each policy.
š¦ combine: Combines the extracted .csx files from subdirectories of a given directory into a single xml file.
š For the extract command, please provide a directory path that contains all the policy files. The directory structure should look like this:
.
āāā policies
| āāā policy1.xml
| āāā policy2.xml
| āāā policy3.xml
š For the combine command, please provide a directory path that contains subdirectories with generated .csx files from the extract command. The directory structure should look like this:
.
āāā scripts
| āāā subfolder1
| | āāā block-001.csx
| | āāā inline-001.csx
| | āāā replaced.xml
| | āāā context.csx
| | āāā context.json
| āāā subfolder2
| | āāā block-001.csx
| | āāā inline-001.csx
| | āāā replaced.xml
| | āāā context.csx
| | āāā context.json
`;
//# sourceMappingURL=constants.js.map