mangekyo_user_handler.go 842 B

123456789101112131415161718192021222324252627282930
  1. package main
  2. import (
  3. "fmt"
  4. "git.swzry.com/zry/go-hhc-cli/hhc_mangekyo"
  5. "git.swzry.com/zry/go-hhc-cli/hhc_telws"
  6. "git.swzry.com/zry/go-hhc-cli/hhccli"
  7. )
  8. type MUH struct {
  9. }
  10. func NewMUH() *MUH {
  11. muh := &MUH{}
  12. return muh
  13. }
  14. func (mhu *MUH) GetDefaultPromptString(ctx *hhc_telws.TelwsSessionContext) string {
  15. return fmt.Sprintf("<%s@MangekyoHHCTest>", ctx.GetUsername())
  16. }
  17. func (mhu *MUH) GetDefaultTitle(ctx *hhc_telws.TelwsSessionContext) string {
  18. return fmt.Sprintf("%s@MangekyoHHCTest - UserView", ctx.GetUsername())
  19. }
  20. func (mhu *MUH) GetCustomViewPortalCommands() []hhc_mangekyo.MangekyoCustomViewPortalCommandDefine {
  21. mcvpcds := make([]hhc_mangekyo.MangekyoCustomViewPortalCommandDefine, 0)
  22. return mcvpcds
  23. }
  24. func (mhu *MUH) NewSession(ctx *hhc_telws.TelwsSessionContext, cli *hhccli.TerminalInteractive) error {
  25. return nil
  26. }