atsf4g_go_robot_cmd

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoCompleteUseId

func AutoCompleteUseId(string) []string

func AutoCompleteUseIdWithoutCurrent

func AutoCompleteUseIdWithoutCurrent(string) []string

func CmdCreateUser

func CmdCreateUser(action base.TaskActionImpl, openId string) (user_data.User, error)

func CurrentUserRunTaskDefaultTimeout

func CurrentUserRunTaskDefaultTimeout(f func(*user_data.TaskActionUser) error, name string) *user_data.TaskActionUser

func GetCurrentUser

func GetCurrentUser() user_data.User

func LogoutAllUsers

func LogoutAllUsers()

func MutableUserMapContainer

func MutableUserMapContainer() map[string]user_data.User

func RegisterUserCommand

func RegisterUserCommand(path []string, fn UserCommandFunc, argsInfo string, desc string,
	dynamicComplete readline.DynamicCompleteFunc)

func SetCurrentUser

func SetCurrentUser(user user_data.User)

Types

type UserCommandFunc

type UserCommandFunc func(base.TaskActionImpl, user_data.User, []string) string

func GetUserCommandFunc

func GetUserCommandFunc(path []string) ([]string, UserCommandFunc)

type UserCommandNode

type UserCommandNode struct {
	Children map[string]*UserCommandNode
	Func     UserCommandFunc
}

func MutableUserCommandRoot

func MutableUserCommandRoot() *UserCommandNode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL