spool

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package spool resolves chalk's standard input/output routing (local directory, S3 bucket, explicit file list, stdin/stdout) to github.com/fogfish/stream/spool primitives. It is shared by rt/cli and rt/cobra.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Source

func Source(inputDir string, args []string) (spool.FileSystem, spool.Walker, error)

Source resolves the input file system and walker.

  • inputDir starting with "s3://" -> S3 bucket, walk from "/"
  • inputDir (local path) -> local directory, walk from "/"
  • len(args) != 0 -> current directory, walk listed files
  • otherwise -> stdin, walked as a single "STDIN" entry

func Target

func Target(outputDir, outputFile string) (spool.FileSystem, error)

Target resolves the output file system.

  • outputDir starting with "s3://" -> S3 bucket
  • outputDir (local path) -> local directory
  • outputFile -> single file
  • otherwise -> stdout

Types

This section is empty.

Jump to

Keyboard shortcuts

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