diff --git a/console/cli_contract.go b/console/cli_contract.go deleted file mode 100644 index 07255cb..0000000 --- a/console/cli_contract.go +++ /dev/null @@ -1,25 +0,0 @@ -// -// cli_contact.go -// Copyright (C) 2022 tiglog -// -// Distributed under terms of the MIT license. -// - -package console - -type ICommand interface { - Init(args []string) - GetName() string - GetDesc() string - GetAction() ActionHandler - GetHelp() string -} - -type IConsole interface { - GetCmds() map[string]ICommand - GetName() string - GetDesc() string - GetVersion() string - GetExtraAbout() ActionHandler -} -type ActionHandler func() error diff --git a/console/console.go b/console/console.go index edaee70..291dcae 100644 --- a/console/console.go +++ b/console/console.go @@ -94,3 +94,20 @@ func (s *sApp) Run(args []string) { os.Exit(1) } } + +type ICommand interface { + Init(args []string) + GetName() string + GetDesc() string + GetAction() ActionHandler + GetHelp() string +} + +type IConsole interface { + GetCmds() map[string]ICommand + GetName() string + GetDesc() string + GetVersion() string + GetExtraAbout() ActionHandler +} +type ActionHandler func() error