go-pmtiles icon indicating copy to clipboard operation
go-pmtiles copied to clipboard

Progressbar writer

Open anysomewhere opened this issue 9 months ago • 2 comments

Use the writer from the logger to write the progressbar output to. The logger is available in every function that uses a progressbar but it is often un(der)used. As the default output writer for loggers is os.Stderr as which is the default for the progressbar as well, this won't change anything for default logger users, but it enables users of the library to redirect the progressbar output.

anysomewhere avatar Apr 12 '25 08:04 anysomewhere

Thanks, agreed this would be useful and has a lot of overlap with https://github.com/protomaps/go-pmtiles/issues/117 so maybe we should move to slog soon which should encompass hiding progress. What specific subcommand do you need this for?

bdon avatar Apr 15 '25 06:04 bdon

Is there a requirement to move to slog? That would make progressbars more or less impossible.

anysomewhere avatar Jun 13 '25 11:06 anysomewhere