From 5b81110d162c3a5487c9fbb5c61f467359ba5b94 Mon Sep 17 00:00:00 2001 From: Vsevolod Brekelov Date: Wed, 16 Oct 2019 13:47:42 +0300 Subject: [PATCH] cli: print logo via shell --- pkg/vm/cli/cli.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/vm/cli/cli.go b/pkg/vm/cli/cli.go index f871db287..b5c53d434 100644 --- a/pkg/vm/cli/cli.go +++ b/pkg/vm/cli/cli.go @@ -367,7 +367,7 @@ func changePrompt(c ishell.Actions, v *vm.VM) { // Run waits for user input from Stdin and executes the passed command. func (c *VMCLI) Run() error { - printLogo() + printLogo(c.shell) c.shell.Run() return nil } @@ -418,7 +418,7 @@ func parseArgs(args []string) ([]vm.StackItem, error) { return items, nil } -func printLogo() { +func printLogo(c *ishell.Shell) { logo := ` _ ____________ __________ _ ____ ___ / | / / ____/ __ \ / ____/ __ \ | | / / |/ / @@ -426,7 +426,7 @@ func printLogo() { / /| / /___/ /_/ /_____/ /_/ / /_/ /_____/ |/ / / / / /_/ |_/_____/\____/ \____/\____/ |___/_/ /_/ ` - fmt.Print(logo) - fmt.Println() - fmt.Println() + c.Print(logo) + c.Println() + c.Println() }