setup

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: 11 Imported by: 0

Documentation

Overview

Package setup implements the ctx notify setup subcommand.

It configures webhook notification endpoints for hook events.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns the "ctx notify setup" subcommand.

Returns:

  • *cobra.Command: Configured setup subcommand

func Run

func Run(cmd *cobra.Command, stdin *os.File) error

Run prompts for a webhook URL and saves it encrypted.

Exported for testability (tests inject a mock stdin).

Parameters:

  • cmd: Cobra command for output
  • stdin: Input source (os.Stdin in production, temp file in tests)

Returns:

  • error: Non-nil on empty input or save failure

Types

This section is empty.

Jump to

Keyboard shortcuts

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