cmd

package
v0.0.0-...-838a368 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 37 Imported by: 0

Documentation

Overview

Copyright © 2025 NAME HERE <EMAIL ADDRESS>

Copyright © 2025 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func InitConfig

func InitConfig()

InitConfig reads in config file and ENV variables if set.

Types

type LegacyCall

type LegacyCall struct {
	ID           string              `json:"id" yaml:"id"`
	Author       string              `json:"author,omitempty" yaml:"author,omitempty"`
	Subject      string              `json:"subject,omitempty" yaml:"subject,omitempty"`
	Content      string              `json:"content" yaml:"content"`
	Destinations []model.Destination `json:"destinations" yaml:"destinations"`
	ScheduledAt  time.Time           `json:"scheduled_at,omitempty" yaml:"scheduled_at,omitempty"`
	Cron         string              `json:"cron,omitempty" yaml:"cron,omitempty"`
	Recurring    bool                `json:"recurring,omitempty" yaml:"recurring,omitempty"`
	Delta        string              `json:"delta,omitempty" yaml:"delta,omitempty"`
	Sequence     string              `json:"sequence,omitempty" yaml:"sequence,omitempty"`
	Campaign     model.Campaign      `json:"campaign" yaml:"campaign"`
}

LegacyCall represents the old structure of a call for migration purposes.

type LegacySource

type LegacySource struct {
	Campaign model.Campaign `json:"campaign" yaml:"campaign"`
	Calls    []LegacyCall   `json:"calls" yaml:"calls"`
	Events   []model.Event  `json:"events" yaml:"events"`
}

LegacySource represents the old structure of a source file for migration.

Jump to

Keyboard shortcuts

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