Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarneyjr committed Mar 1, 2020
1 parent 8332b9a commit 030f0a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions awsume/awsumepy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import pluggy
import colorama
import boto3
import argcomplete
from pathlib import Path

from . lib.profile import aggregate_profiles
Expand Down Expand Up @@ -61,7 +60,6 @@ def parse_args(self, system_arguments: list) -> argparse.Namespace:
parser=argument_parser,
)
logger.debug('Parsing arguments')
argcomplete.autocomplete(argument_parser)
args = argument_parser.parse_args(system_arguments)
logger.debug('Handling arguments')
if args.refresh_autocomplete:
Expand Down
9 changes: 4 additions & 5 deletions awsume/awsumepy/default_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
import json
import os
import colorama
from pathlib import Path


from . lib import exceptions
from . lib.autocomplete import profile_name_completer, region_completer
from . hookimpl import hookimpl
from .. import __data__
from ..autoawsume.process import kill, kill_autoawsume
Expand Down Expand Up @@ -41,7 +40,7 @@ def add_arguments(config: dict, parser: argparse.ArgumentParser):
action='store',
metavar='profile_name',
help='The target profile name',
).completer = profile_name_completer
)
parser.add_argument('-r', '--refresh',
action='store_true',
dest='force_refresh',
Expand Down Expand Up @@ -100,7 +99,7 @@ def add_arguments(config: dict, parser: argparse.ArgumentParser):
dest='source_profile',
metavar='source_profile',
help='source_profile to use (role-arn only)',
).completer = profile_name_completer
)
parser.add_argument('--external-id',
action='store',
dest='external_id',
Expand All @@ -118,7 +117,7 @@ def add_arguments(config: dict, parser: argparse.ArgumentParser):
dest='region',
metavar='region',
help='The region you want to awsume into',
).completer = region_completer
)
parser.add_argument('--session-name',
action='store',
dest='session_name',
Expand Down
1 change: 0 additions & 1 deletion shell_scripts/awsume
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
# PYTHON_ARGCOMPLETE_OK

#AWSUME_FLAG - what awsumepy told the shell to do
#AWSUME_n - the data from awsumepy
Expand Down

0 comments on commit 030f0a5

Please sign in to comment.