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
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 ¶
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
Click to show internal directories.
Click to hide internal directories.