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 tags found
1 merge request!436[renovate] Update module github.com/pterm/pterm to v0.12.58
Pipeline #138531 passed
This commit is part of merge request !436. Comments created here will be created in the context of that merge request.
......@@ -41,6 +41,7 @@ import (
"github.com/google/uuid"
"github.com/openconfig/goyang/pkg/yang"
"github.com/pterm/pterm"
"github.com/pterm/pterm/putils"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/spf13/viper"
......@@ -65,9 +66,9 @@ func NewPromptCompleter() *PromptCompleter {
// Run starts the interactive completion.
func (pc *PromptCompleter) Run() {
title, _ := pterm.DefaultBigText.WithLetters(
pterm.NewLettersFromString("go"),
pterm.NewLettersFromStringWithStyle("SDN", pterm.NewStyle(pterm.FgCyan)),
pterm.NewLettersFromString("c"),
putils.LettersFromString("go"),
putils.LettersFromStringWithStyle("SDN", pterm.NewStyle(pterm.FgCyan)),
putils.LettersFromString("c"),
).Srender()
description := pterm.DefaultBasicText.Sprint("Control your goSDN controller like you've never done it before!")
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