cmd

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRedirectPort = "9999"
)

Variables

View Source
var (
	ErrNoChannel          = errors.New("no channel provided")
	ErrNoClientID         = errors.New("no clientID in configuration file")
	ErrNoUsername         = errors.New("no username in configuration file")
	ErrInvalidAccessToken = errors.New("invalid access token")
)

Functions

func NewRootCmd

func NewRootCmd() *cobra.Command

Types

type Config

type Config struct {
	ClientID     string `yaml:"clientID"`
	Username     string `yaml:"username"`
	RedirectPort string `yaml:"redirectPort"`
}

Jump to

Keyboard shortcuts

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