Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarrarom committed Jan 5, 2023
1 parent 2e8322e commit 031acb7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion create/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_issues_autocomp(ctx, args, incomplete):
return [(issue['key'],issue['fields']['summary']) for issue in returned if incomplete in issue['fields']['summary'] or incomplete in issue['key']]

@click.command()
@click.argument('issue', type=click.STRING, autocompletion=get_issues_autocomp)
@click.argument('issue', type=click.STRING, shell_complete=get_issues_autocomp)
@click.option('--comment', '-c', help="Comment text to add", type=str, required=True)
@click.pass_context
def comment(ctx, issue, comment):
Expand Down
2 changes: 1 addition & 1 deletion jira_config/remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def get_keys(ctx, args, incomplete):
return [key for key in config.keys() if incomplete in key]

@click.command(name='remove')
@click.option('--key', '-k', help="The key to be removed", required=True, prompt=True, autocompletion=get_keys)
@click.option('--key', '-k', help="The key to be removed", required=True, prompt=True, shell_complete=get_keys)
@click.pass_context
def remove_config(ctx, key):
'''
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='fancy-jira',
version='0.0.8',
version='0.1.0',
author='Gui Martins',
url='https://fancywhale.ca/',
author_email='[email protected]',
Expand Down

0 comments on commit 031acb7

Please sign in to comment.