Skip to content

Commit

Permalink
Remove s3 from updating and add --profile flag
Browse files Browse the repository at this point in the history
  • Loading branch information
grant0417 committed Jun 6, 2024
1 parent f2d8ae0 commit d2c2745
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- name: Build specs
run: rye run aws
continue-on-error: true
- name: Remove ec2
run: rm export/ts/aws/ec2.ts
- name: Remove ec2 and s3
run: rm export/ts/aws/ec2.ts export/ts/aws/s3.ts
- name: Run prettier
run: npx -y prettier --ignore-path=.prettierignore -w export/ts
- uses: withfig/push-to-fig-autocomplete-action@v2
Expand Down
12 changes: 11 additions & 1 deletion src/aws_cli_plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,17 @@ def read_commands(command_table, session, **kwargs):
if kwargs["event_name"] != "building-command-table.main":
return

root = {"name": "aws", "subcommands": []}
root = {
"name": "aws",
"options": [
{
"name": "--profile",
"description": "Use a specific profile from your credential file",
"args": {},
},
],
"subcommands": [],
}

for command_name in command_table:
command = command_table[command_name]
Expand Down

0 comments on commit d2c2745

Please sign in to comment.