apim-policy-utils
Version:
An XML file scripts maniputaling and debugging tool targeting to help working with Azure APIM Policy files in xml format.
44 lines (34 loc) ⢠1.59 kB
text/typescript
import { getVersion } from "./getVersion"
export const separator = "// ================== <Generated Separator. Please don't edit this line> =================="
export const cliHelp = `
š Welcome to apim-policy-utils!
ā
Version: ${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
`