converteradapters

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package converteradapters holds CLI adapters that connect the icarus CLI to the converters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVConverterAdapter

type CSVConverterAdapter struct {
	// contains filtered or unexported fields
}

func (*CSVConverterAdapter) Convert

func (c *CSVConverterAdapter) Convert(input *os.File, output *ical.Calendar) error

func (*CSVConverterAdapter) Initialize

func (c *CSVConverterAdapter) Initialize(parser *argparse.Parser) (*argparse.Command, error)

type ConverterAdapter

type ConverterAdapter interface {
	// Initialize creates a new subcommand for the argparse parser.
	Initialize(parser *argparse.Parser) (*argparse.Command, error)
	// Convert converts the incoming calendar and fills the output calendar
	Convert(input *os.File, output *ical.Calendar) error
}

The ConverterAdapter connects the Icarus CLI with a processor

func GetConverterAdapters

func GetConverterAdapters() []ConverterAdapter

GetConverterAdapters returns a list of enabled processor adapters

Jump to

Keyboard shortcuts

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