files

package
v1.48.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package files owns handwritten file workflows and their result presentation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(root *cli.Command)

Configure extends task routes after cloning so compatibility commands keep their output.

func RequestInput added in v1.42.1

func RequestInput(command *cli.Command, reader io.Reader) io.Reader

RequestInput borrows stdin without closing it or changing its descriptor state. Scalar inspection uses the shared platform-specific cancellation behavior.

func ShowResult

func ShowResult(value gjson.Result, opts ResultOptions) (bool, error)

ShowResult presents friendly file routes. Downloads retain ordinary rendering. The caller supplies a non-nil context and initialized output destinations.

func ValidatePurpose added in v1.42.1

func ValidatePurpose(command *cli.Command, contents requestflag.RequestContents) error

ValidatePurpose checks resolved fields, including scalar files, before sending a request.

Types

type ResultOptions

type ResultOptions struct {
	clioutput.ReadableOptions
	Quiet bool
}

ResultOptions supplies destination classification and quiet policy from assembly.

Jump to

Keyboard shortcuts

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