From 8fad89d4c70b063e68895de04870d5b5bd93675d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Flc=E3=82=9B?= Date: Fri, 2 Feb 2024 11:17:35 +0800 Subject: [PATCH] feat(prints): Add `ProgressBar` feature (#90) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Flcă‚› --- prints/progressbar.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prints/progressbar.go b/prints/progressbar.go index 6d0373aa..9adb8546 100644 --- a/prints/progressbar.go +++ b/prints/progressbar.go @@ -6,6 +6,10 @@ var ( Full = pb.Full Default = pb.Default Simple = pb.Simple + + FullTemplate = WithTemplate(Full) + DefaultTemplate = WithTemplate(Default) + SimpleTemplate = WithTemplate(Simple) ) type ProgressBar struct {