noninteractive

package
v0.17.9 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package noninteractive provides utilities for detecting and handling provider-not-configured errors in non-interactive environments (daemons, CI, piped stdin).

Index

Constants

View Source
const HelpHint = "Set SPROUT_PROVIDER / configure ~/.config/sprout/config.json, or run `sprout agent` interactively"

HelpHint is the canonical guidance shown when a provider is not configured in non-interactive environments (daemons, CI, piped stdin).

Variables

This section is empty.

Functions

func IsNonInteractiveHint

func IsNonInteractiveHint(err error) bool

IsNonInteractiveHint checks if an error message contains the HelpHint text. This is a sentinel check for callers to detect provider-not-configured-in-non-interactive errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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