output

package
v0.30.6 Latest Latest
Warning

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

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

Documentation

Overview

Package output renders imagefs data for `d8 cr fs` subcommands as human-readable text. JSON output (`--format json`) is planned for a later iteration; imagefs.Entry already carries `json` tags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HumanSize

func HumanSize(n int64) string

HumanSize returns a compact human-readable size (e.g. "789 B", "12.3 KB").

func WriteEntriesText

func WriteEntriesText(w io.Writer, entries []imagefs.Entry, long bool) error

WriteEntriesText writes entries in simple or long (-l) format. Directory entries are emitted with a trailing "/" so the type is visible at a glance (matching the convention used by `ls -p`, `tree`, etc.).

Types

This section is empty.

Jump to

Keyboard shortcuts

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