cli

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package cli for basic cli functions

Package cli for basic cli functions

Package cli for basic cli functions

Package cli for basic cli functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenAppVersion

func GenAppVersion() error

GenAppVersion gen app verrsion string

func OpenBrowser added in v1.1.0

func OpenBrowser(url string) error

OpenBrowser open browser for url

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