Skip to content
Snippets Groups Projects
Commit 7df06437 authored by Fabian Seidl's avatar Fabian Seidl
Browse files

fix use of deprecated methods after version update

parent 839c52bf
No related branches found
No related tags found
1 merge request!436[renovate] Update module github.com/pterm/pterm to v0.12.58
Pipeline #138531 passed
...@@ -41,6 +41,7 @@ import ( ...@@ -41,6 +41,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
"github.com/openconfig/goyang/pkg/yang" "github.com/openconfig/goyang/pkg/yang"
"github.com/pterm/pterm" "github.com/pterm/pterm"
"github.com/pterm/pterm/putils"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/pflag" "github.com/spf13/pflag"
"github.com/spf13/viper" "github.com/spf13/viper"
...@@ -65,9 +66,9 @@ func NewPromptCompleter() *PromptCompleter { ...@@ -65,9 +66,9 @@ func NewPromptCompleter() *PromptCompleter {
// Run starts the interactive completion. // Run starts the interactive completion.
func (pc *PromptCompleter) Run() { func (pc *PromptCompleter) Run() {
title, _ := pterm.DefaultBigText.WithLetters( title, _ := pterm.DefaultBigText.WithLetters(
pterm.NewLettersFromString("go"), putils.LettersFromString("go"),
pterm.NewLettersFromStringWithStyle("SDN", pterm.NewStyle(pterm.FgCyan)), putils.LettersFromStringWithStyle("SDN", pterm.NewStyle(pterm.FgCyan)),
pterm.NewLettersFromString("c"), putils.LettersFromString("c"),
).Srender() ).Srender()
description := pterm.DefaultBasicText.Sprint("Control your goSDN controller like you've never done it before!") description := pterm.DefaultBasicText.Sprint("Control your goSDN controller like you've never done it before!")
pterm.DefaultCenter.Println(title) pterm.DefaultCenter.Println(title)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment