cliutil

package
v0.0.0-...-45ae864 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetATPClient

func GetATPClient(cctx *cli.Context, authreq bool) (*api.ATProto, error)

func GetBskyClient

func GetBskyClient(cctx *cli.Context, authreq bool) (*api.BskyApp, error)

func GetPLCClient

func GetPLCClient(cctx *cli.Context) *api.PLCServer

func NewHttpClient

func NewHttpClient() *http.Client

func ReadAuth

func ReadAuth(fname string) (*xrpc.AuthInfo, error)

func SetupDatabase

func SetupDatabase(dbval string) (*gorm.DB, error)

func TryReadConfig

func TryReadConfig()

func WriteConfig

func WriteConfig(cfg *CliConfig) error

Types

type CliConfig

type CliConfig struct {
	PDS string
	// contains filtered or unexported fields
}
var Config *CliConfig

Jump to

Keyboard shortcuts

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