notify

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package notify provides terminal output functions for the notify command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupDone

func SetupDone(cmd *cobra.Command, maskedURL, encPath string)

SetupDone prints the success block after saving a webhook: configured URL (masked) and encrypted file path.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • maskedURL: masked webhook URL for display.
  • encPath: encrypted file path.

func SetupPrompt

func SetupPrompt(cmd *cobra.Command)

SetupPrompt prints the interactive webhook URL prompt.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func TestFiltered

func TestFiltered(cmd *cobra.Command)

TestFiltered prints the notice when the test event is filtered.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func TestNoWebhook

func TestNoWebhook(cmd *cobra.Command)

TestNoWebhook prints the message when no webhook is configured.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.

func TestResult

func TestResult(cmd *cobra.Command, statusCode int, encPath string)

TestResult prints the webhook test response block: status line and optional working confirmation.

Parameters:

  • cmd: Cobra command for output. Nil is a no-op.
  • statusCode: HTTP response status code.
  • encPath: encrypted file path for the working message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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