diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 90d6928..46f0276 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,8 @@ jobs: continue-on-error: true - name: Remove ec2 run: rm export/ts/aws/ec2.ts + - name: Run prettier + run: npx -y prettier --ignore-path=.prettierignore -w export/ts - uses: withfig/push-to-fig-autocomplete-action@v2 with: token: ${{ secrets.FIG_BOT_TOKEN }} diff --git a/src/aws_cli_plugin/__init__.py b/src/aws_cli_plugin/__init__.py index 296872d..6d074de 100644 --- a/src/aws_cli_plugin/__init__.py +++ b/src/aws_cli_plugin/__init__.py @@ -1,6 +1,7 @@ import json import re import os.path as path +import html from pathlib import Path from awscli.customizations.commands import BasicCommand from awscli.clidriver import ServiceCommand, ServiceOperation @@ -16,6 +17,7 @@ def awscli_initialize(cli): def cleanDescription(text: str) -> str: text = re.sub("<[^<]+?>", "", text).strip() text = text.rstrip(".").rstrip().rstrip(".").rstrip() + text = html.unescape(text) if len(text) > 0: # make the first char upper case text = text[0].upper() + text[1:]