forked from External/ergo
add a version command for sumeet
This commit is contained in:
parent
994200bf46
commit
d6ec1e719b
4 changed files with 35 additions and 5 deletions
|
|
@ -48,6 +48,7 @@ var (
|
|||
QUIT: NewQuitCommand,
|
||||
TOPIC: NewTopicCommand,
|
||||
USER: NewUserCommand,
|
||||
VERSION: NewVersionCommand,
|
||||
WHO: NewWhoCommand,
|
||||
WHOIS: NewWhoisCommand,
|
||||
}
|
||||
|
|
@ -900,3 +901,16 @@ func NewDebugCommand(args []string) (editableCommand, error) {
|
|||
subCommand: strings.ToUpper(args[0]),
|
||||
}, nil
|
||||
}
|
||||
|
||||
type VersionCommand struct {
|
||||
BaseCommand
|
||||
target string
|
||||
}
|
||||
|
||||
func NewVersionCommand(args []string) (editableCommand, error) {
|
||||
cmd := &VersionCommand{}
|
||||
if len(args) > 0 {
|
||||
cmd.target = args[0]
|
||||
}
|
||||
return cmd, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue