af-api4-action - Rename 'msg-' and 'on-' options
authorTim Otten <totten@civicrm.org>
Thu, 12 Sep 2019 23:07:59 +0000 (19:07 -0400)
committerCiviCRM <info@civicrm.org>
Wed, 16 Sep 2020 02:13:19 +0000 (19:13 -0700)
commit4381cab0a69e6d94e49aaffc7debc8bd86dc8a19
tree1fb3dadd2ad5d6c3a3274ab41a77c59ce0fe049a
parentc1b9955f72106c5e597bc90a5be3805124877f2a
af-api4-action - Rename 'msg-' and 'on-' options

Here's the bash script...

```
for REGEX in \
        s/msg-start/af-api4-start-msg/g \
        s/msgStart/afApi4StartMsg/g \
        s/msg-error/af-api4-error-msg/g \
        s/msgError/afApi4ErrorMsg/g \
        s/msg-success/af-api4-success-msg/g \
        s/msgSuccess/afApi4SuccessMsg/g \
        s/on-success/af-api4-success/g \
        s/onSuccess/afApi4Success/g \
        s/on-error/af-api4-error/g \
        s/on-error/afApi4Error/g
do
  DIRS="core docs gui html mock auditor"
  echo "Processing regex [$REGEX] in [$DIRS]"
  find $DIRS -name '*.js' -o -name '*.html' -o -name '*.json' -o -name '*.md' \
    | grep -v /node_modules/ \
    | xargs -L1 sed -i.bak "$REGEX"
  find $DIRS -name '*.bak' -delete
done
```
ext/afform/core/ang/afCore/Api4Action.js
ext/afform/core/ang/afCore/Api4Action.md
ext/afform/html/ang/afHtmlList.aff.html