cli

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *cobra.Command

Types

type Obot

type Obot struct {
	Debug  bool `usage:"Enable debug logging"`
	Client *apiclient.Client
}

func (*Obot) PersistentPre

func (a *Obot) PersistentPre(*cobra.Command, []string) error

func (*Obot) Run

func (a *Obot) Run(cmd *cobra.Command, _ []string) error

type Server

type Server struct {
	services.Config
}

func (*Server) Run

func (s *Server) Run(cmd *cobra.Command, _ []string) error

type Token added in v0.8.0

type Token struct {
	NoExpiration bool `usage:"Set the token to never expire"`
	ForceRefresh bool `usage:"Force refresh the token"`
	// contains filtered or unexported fields
}

func (*Token) Customize added in v0.8.0

func (t *Token) Customize(cmd *cobra.Command)

func (*Token) Run added in v0.8.0

func (t *Token) Run(cmd *cobra.Command, _ []string) error

type Version

type Version struct{}

func (*Version) Run

func (l *Version) Run(*cobra.Command, []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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