beany

command module
v0.0.0-...-dcac96a Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 23 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.

README

beany

Beany is an interactive command-line and TUI client for beanstalkd written in Go

Screenshot

Features

CLI mode
  • Persistent history
  • Mass deletion of jobs on selected tube
  • Paged output when viewing jobs
  • Tube autocompletion for commands
TUI mode

Screenshot

  • Logarithmic histogram view showing live counts in all tubes
  • Automatically peek the current tube
  • Durations converted to human-readable times
  • Quickly run commands on the current tube, or across all tubes

Installation

go get github.com/eskriett/beany

Usage

beany [options]

Running beany without any arguments will start it in interactive command-line mode. By default it will attempt to connect to 127.0.0.1:11300:

$ beany
Connected to '127.0.0.1:11300'
[default] >>> version
beany version: 0.0.1

All commands can also be provided as arguments, e.g.

$ beany version
beany version: 0.0.1

A list of available commands can be viewed with:

$ beany help

Commands:
  clear               clear the screen
  connect             connects to a beanstalk server
  delete              delete a job
  delete-buried       deletes all buried jobs on the current tube
  delete-delayed      deletes all delayed jobs on the current tube
  delete-ready        deletes all ready jobs on the current tube
  disconnect          disconnects from the beanstalk server
  exit                exit the program
  help                display help
  info                info about the current connection
  kick                kick jobs from the current tube
  list-tubes          lists tubes
  peek-buried         peek at buried jobs
  peek-delayed        peek at delayed jobs
  peek-ready          peek at ready jobs
  put                 puts data on the current tube
  stats               display server statistics
  stats-tube          stats the current tube
  use                 use a tube
  version             display version information

Additional information for a particular command can be view with:

$ beany peek-ready help

Looks at the job at the front of the ready queue.

A tube argument can also be provided, otherwise uses the current active tube:

  peek-ready <TUBE>

This command is available via the 'pr' alias

To run beany in TUI mode, pass the --tui argument. By default it will attempt to connect to 127.0.0.1:11300:

$ beany --tui

This can be modified by passing the --connect argument:

$ beany --tui --connect localhost:11301

If a subcommand is passed, the --tui flag has no effect.

History

beany maintains a persistent history, this can be found at ~/.beany_history.

Colours

Coloured output can be disabled with beany --boring. This has no effect in TUI mode.

Pager

By default beany will use whatever the $PAGER environment variable is configured to, otherwise it will default to less -R. For example to run beany with more run:

$ PAGER=more beany
Editor

When use the put command beany will first look for the editor defined by the $EDITOR envrionment variable. If this cannot be found, beany will fallback to using vi. For example, to run beany with nano:

$ EDITOR=nano beany

License

MIT

Credits

Library Use
github.com/abiosoft/ishell interactive shell library
github.com/beanstalkd/go-beanstalk beanstalk client
github.com/fatih/color colour output
github.com/olekukonko/tablewriter ascii table
github.com/rivo/tview tui library

Also thanks to beanwalker for the initial inspiration for this tool

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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