notifywizard

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package notifywizard provides an interactive terminal wizard for configuring cloop notification channels: desktop notifications, Slack webhooks, Discord webhooks, and custom HTTP webhooks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(cfg *config.Config, in io.Reader, out io.Writer) error

Setup runs the interactive wizard for all notification channels. It reads from in (usually os.Stdin) and writes to out (usually os.Stdout). On completion, cfg.Notify is updated and the caller should persist the config.

func Status

func Status(cfg *config.Config, out io.Writer)

Status prints which channels are configured and their last reachability state.

func Test

func Test(cfg *config.Config, channel string, out io.Writer) error

Test sends a test ping to the given channel (or all channels if channel == "").

Types

type Channel

type Channel struct {
	Name       string
	Configured bool
	Reachable  bool
	Detail     string
}

Channel represents a single notification channel.

Jump to

Keyboard shortcuts

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