mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-01 07:38:50 +00:00
Replace yacspin with briandowns/spinner for progress indication
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
1db4e66099
commit
131cee951f
4 changed files with 15 additions and 41 deletions
|
|
@ -173,14 +173,14 @@ func (b *Builder) diff() (string, bool, error) {
|
|||
|
||||
// finished with Kustomization diff
|
||||
if b.spinner != nil {
|
||||
b.spinner.Message(spinnerDryRunMessage)
|
||||
b.spinner.Suffix = " " + spinnerDryRunMessage
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if b.spinner != nil {
|
||||
b.spinner.Message("processing inventory")
|
||||
b.spinner.Suffix = " processing inventory"
|
||||
}
|
||||
|
||||
if b.kustomization.Spec.Prune && len(diffErrs) == 0 {
|
||||
|
|
@ -204,7 +204,7 @@ func (b *Builder) diff() (string, bool, error) {
|
|||
|
||||
func (b *Builder) kustomizationDiff(kustomization *kustomizev1.Kustomization) (string, bool, error) {
|
||||
if b.spinner != nil {
|
||||
b.spinner.Message(fmt.Sprintf("%s in %s", spinnerDryRunMessage, kustomization.Name))
|
||||
b.spinner.Suffix = " " + fmt.Sprintf("%s in %s", spinnerDryRunMessage, kustomization.Name)
|
||||
}
|
||||
|
||||
sourceRef := kustomization.Spec.SourceRef.DeepCopy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue