cli

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package cli for basic cli functions

Package cli for basic cli functions

Package cli for basic cli functions

Index

Constants

View Source
const (
	First             = 1
	EmptyBuildInfoLen = 0
)

Variables

This section is empty.

Functions

func GenAppVersion

func GenAppVersion() error

GenAppVersion gen app verrsion string

func PoolNewDeviceCode

func PoolNewDeviceCode(config *cfg.Config, oauth *internal.OauthService) error

PoolNewDeviceCode pool new device code (open browser and wait for correct code activation)

func ReadTokenFromFile

func ReadTokenFromFile(filePath string) (*str.Token, error)

ReadTokenFromFile reads the token from the specified file

func ValidAccessToken

func ValidAccessToken(config *cfg.Config, oauth *internal.OauthService) bool

ValidAccessToken valid if access_token is expired or not, and refresh if expired

Types

This section is empty.

Jump to

Keyboard shortcuts

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