feed

package
v0.2.66 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MPL-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package feed is how `txco attach` shows what it does, one line a thing: the same lines in its terminal (run with --foreground) and in its log (`txco attach logs`), coloured when they go to a terminal.

$ npm test · exit 0 · 2.1s        a command the other chassis ran here
$ npm test · not_allowed          …one that did not run, and why
job 54e56a9b started              a job started in the background
  agent: fix the failing test     a line the job wrote ($TXCO_JOB_PROGRESS)
  says: I'll look at sum.js        (the agent's script writes agent:, says:
  runs: Bash npm test               and runs: lines; any job may write any)
job 54e56a9b ended · exit 0       its end
attached: … / detached: …         the link, and the share, starting and ending

A job's lines are its own words: Clean keeps them to one line and drops every control character, so nothing a command writes can move the cursor, retitle the terminal or paint over what came before.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(s string, max int) string

Clean is s as one line of at most max characters, with no control characters: runs of white space are one space.

func IsTerminal

func IsTerminal(f *os.File) bool

IsTerminal reports whether f is a terminal, where colour is wanted.

func Paint

func Paint(line string) string

Paint colours one line for a terminal. A line it does not know is left as it is.

Types

This section is empty.

Jump to

Keyboard shortcuts

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