Skip to content

Commit

Permalink
format with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
grant0417 committed Jun 6, 2024
1 parent a0e3582 commit f2d8ae0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions src/aws_cli_plugin/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:]
Expand Down

0 comments on commit f2d8ae0

Please sign in to comment.