shell

package module
v0.0.0-...-21da051 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

README

iofs-shell

GoDoc Go Report Card

Package shell exposes an interactive user interface that allows to browse an io/fs filesystem.

See examples:

func Browse(fs iofs.FS, cwd string) error

Browse opens a terminal-based interactive browser that allows to navigate the given filesystem.

Keys:

  • q: quit
  • escape: leave a subdirectory
  • right, left arrow: enter/leave a subdirectory
  • up, down arrow: navigate the file list of the current directory
  • g, G: go to top/bottom

Documentation

Overview

Package shell exposes an interactive user interface that allows to browse an io/fs filesystem.

See examples:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Browse

func Browse(fs iofs.FS, cwd string) error

Browse opens a terminal-based interactive browser that allows to navigate the given filesystem.

Keys:

  • q: quit
  • escape: leave a subdirectory
  • right, left arrow: enter/leave a subdirectory
  • up, down arrow: navigate the file list of the current directory
  • g, G: go to top/bottom

Types

This section is empty.

Directories

Path Synopsis
examples
browse-zip command
Command browse-zip allows to browse a ZIP file interactively on a terminal.
Command browse-zip allows to browse a ZIP file interactively on a terminal.

Jump to

Keyboard shortcuts

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