flags

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package flags manages command line arguments and flags

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// HS is matrix homeserver (supports delegation)
	HS *string
	// Login is matrix user login
	Login *string
	// Password is matrix user password
	Password *string
	// Room id or alias (raw)
	Room *string
	// Room ID
	RoomID id.RoomID
	// RoomAlias
	RoomAlias id.RoomAlias
	// Ignore messages by following MXIDs
	Ignore *string
	// Limit of messages
	Limit *int
	// Template file
	Template *string
	// Output file name. If filename contains %s it will be replaced with event ID (in case of one file per message)
	Output *string
}

Config from the command line args and flags

func Parse

func Parse() (*Config, error)

Parse command line arguments and flags

Jump to

Keyboard shortcuts

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