Add unlimited
This commit is contained in:
parent
24ef0b01ea
commit
ffacb64b1f
1 changed files with 2 additions and 2 deletions
|
@ -1312,7 +1312,7 @@ class NcPasswordClient:
|
||||||
password
|
password
|
||||||
)
|
)
|
||||||
count += 1
|
count += 1
|
||||||
if count >= limit:
|
if limit != -1 and count >= limit:
|
||||||
return True
|
return True
|
||||||
self.info(
|
self.info(
|
||||||
{
|
{
|
||||||
|
@ -1490,7 +1490,7 @@ def delete_passwords_folder(ctx, name):
|
||||||
|
|
||||||
@cli.command()
|
@cli.command()
|
||||||
@click.option('--pattern', '-p', required=True, help='Regular expression pattern to search in the password fields')
|
@click.option('--pattern', '-p', required=True, help='Regular expression pattern to search in the password fields')
|
||||||
@click.option('--limit', '-l', default=1, help='Maximun number of passwords to show')
|
@click.option('--limit', '-l', default=-1, help='Maximun number of passwords to show. -1 for unlimited.')
|
||||||
@click_config_file.configuration_option()
|
@click_config_file.configuration_option()
|
||||||
@click.pass_context
|
@click.pass_context
|
||||||
def search(ctx, pattern, limit):
|
def search(ctx, pattern, limit):
|
||||||
|
|
Loading…
Reference in a new issue