cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:    "teams-cli",
	Short:  "Microsoft Teams CLI tool",
	Long:   `A command-line tool for interacting with Microsoft Teams channels and chats`,
	PreRun: initializeLoggerAndClient,
	Run:    runTUI,
}

RootCmd is the root command for the CLI

Functions

func AddFormatFlags

func AddFormatFlags(cmd *cobra.Command, flags *ConfigFormatFlags)

AddFormatFlags adds format flags to a cobra command

func Execute

func Execute()

Execute runs the root command

Types

type ConfigFormat

type ConfigFormat string

ConfigFormat represents supported configuration file formats

const (
	FormatJSON ConfigFormat = "json"
	FormatYAML ConfigFormat = "yaml"
	FormatTOML ConfigFormat = "toml"
)

Accepted config file formats

type ConfigFormatFlags

type ConfigFormatFlags struct {
	JSON bool
	YAML bool
	TOML bool
}

ConfigFormatFlags represents the format flag values

func (*ConfigFormatFlags) GetFormat

func (f *ConfigFormatFlags) GetFormat() (ConfigFormat, error)

GetFormat returns the selected format or an error if none/multiple are selected

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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