cmd

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthFunc = func(cmd *cobra.Command, args []string) error {
	if config.Instance.AcitveUID == "" {
		if len(config.Instance.Users) > 0 {
			return errors.New("存在登录的用户,可以进行切换登录用户")
		}
		return errors.New("请先前往 https://www.dedao.cn 登录得到账户")
	}
	return nil
}

AuthFunc check login

View Source
var Cookie string

Cookie cookie from https://www.dedao.cn

Functions

func Execute

func Execute() error

Execute exec cmd

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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