mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 09:42:22 +00:00
cli: print logo via shell
This commit is contained in:
parent
ced2022273
commit
5b81110d16
1 changed files with 5 additions and 5 deletions
|
@ -367,7 +367,7 @@ func changePrompt(c ishell.Actions, v *vm.VM) {
|
||||||
|
|
||||||
// Run waits for user input from Stdin and executes the passed command.
|
// Run waits for user input from Stdin and executes the passed command.
|
||||||
func (c *VMCLI) Run() error {
|
func (c *VMCLI) Run() error {
|
||||||
printLogo()
|
printLogo(c.shell)
|
||||||
c.shell.Run()
|
c.shell.Run()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -418,7 +418,7 @@ func parseArgs(args []string) ([]vm.StackItem, error) {
|
||||||
return items, nil
|
return items, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func printLogo() {
|
func printLogo(c *ishell.Shell) {
|
||||||
logo := `
|
logo := `
|
||||||
_ ____________ __________ _ ____ ___
|
_ ____________ __________ _ ____ ___
|
||||||
/ | / / ____/ __ \ / ____/ __ \ | | / / |/ /
|
/ | / / ____/ __ \ / ____/ __ \ | | / / |/ /
|
||||||
|
@ -426,7 +426,7 @@ func printLogo() {
|
||||||
/ /| / /___/ /_/ /_____/ /_/ / /_/ /_____/ |/ / / / /
|
/ /| / /___/ /_/ /_____/ /_/ / /_/ /_____/ |/ / / / /
|
||||||
/_/ |_/_____/\____/ \____/\____/ |___/_/ /_/
|
/_/ |_/_____/\____/ \____/\____/ |___/_/ /_/
|
||||||
`
|
`
|
||||||
fmt.Print(logo)
|
c.Print(logo)
|
||||||
fmt.Println()
|
c.Println()
|
||||||
fmt.Println()
|
c.Println()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue