Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sympa.pl - family instantiation - "--quiet" option has no effect on progress bar #1567

Closed
jfaedi opened this issue Dec 30, 2022 · 1 comment · Fixed by #1568
Closed

sympa.pl - family instantiation - "--quiet" option has no effect on progress bar #1567

jfaedi opened this issue Dec 30, 2022 · 1 comment · Fixed by #1568
Labels

Comments

@jfaedi
Copy link

jfaedi commented Dec 30, 2022

Version

6.2.70

Installation method

source package

Expected behavior

./sympa.pl --instantiate_family=${family} --robot=${robot} --input_file=${xml_input_file} --close_unknown --quiet

Actual behavior

./sympa.pl --instantiate_family=${family} --robot=${robot} --input_file=${xml_input_file} --close_unknown --quiet
List "xxxxx" (1/1) created/updated
Creating lists: 100% [===========================================================================================]D 0h00m01s

Steps to reproduce

Instantiate a famliy and use "--quiet" option

Additional information

The problem is in "lib/Sympa/CLI/instantiate.pm" near line 134 where "silent" arg sholud be used when creating $progress object like that:

        $progress = Term::ProgressBar->new(
            {   name   => 'Creating lists',
                count  => $total,
                ETA    => 'linear',
                silent => $options{quiet}
            }
        );
@ikedas
Copy link
Member

ikedas commented Jan 2, 2023

Hi @jfaedi , thanks for reporting bug!

Though I've not confirmed yet, the PR above could fix the problem. --- However it is the fix against 6.2.71b.1: Recently CLI of Sympa had been changed much.

@ikedas ikedas added the ready A PR is waiting to be merged. Close to be solved label Jan 5, 2023
@ikedas ikedas removed the ready A PR is waiting to be merged. Close to be solved label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants