GithubHelp home page GithubHelp logo

edwinhoksberg / beanstalkd-cli Goto Github PK

View Code? Open in Web Editor NEW
31.0 3.0 6.0 69 KB

A simple cli interface for managing beanstalkd queues.

License: MIT License

Makefile 5.58% Go 84.16% Roff 10.26%
golang beanstalkd beanstalkd-monitor cli client cross-platform linux windows macos cli-interface

beanstalkd-cli's Introduction

beanstalkd-cli Build Status

A simple cli interface for managing beanstalkd queues.

Download

You can find the latest release including binaries here.

Usage

NAME:
            beanstalkd-cli

USAGE:
            A simple cli interface for managing beanstalkd queues.

            Homepage: https://github.com/edwinhoksberg/beanstalkd-cli

VERSION:
            1.3.2 [7f1ad96f65246471eae3c07454ad8c77e6a0792f]

AUTHOR:
            Edwin Hoksberg <[email protected]>

COMMANDS:
      monitor
            Monitor the beanstalkd queues

      flush  Completely remove all jobs from a tube

      pop    Remove a job from a queue and display it

      put    Write a job to a queue

      peek   Display a job from the queue without removing it

      help, h
            Shows a list of commands or help for one command

GLOBAL OPTIONS:
      --verbose
            set this to enable debug logging

      --quiet
            set this to disable logging

      --server value
            The server name where beanstalkd is running (default: "127.0.0.1")

      --port value
            The port on which beanstalkd is listening (default: 11300)

      --help, -h
            show help

      --version, -v
            print the version

Development

This program is written in Go, using these dependencies:

  • sirupsen/logrus - Logrus is a structured logger for Go (golang), completely API compatible with the standard library logger.
  • urfave/cli - cli is a simple, fast, and fun package for building command line apps in Go.
  • mpdroog/beanstalkd - A golang beanstalkd client.

Compile from source

This program uses Go modules which makes it easy to compile it anywhere on your system without the need for GOPATH. Just run make build in the project directory and it should compile without any problems.

License

MIT

beanstalkd-cli's People

Contributors

edwinhoksberg avatar ilya-flakin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

beanstalkd-cli's Issues

No installation instructions (from source)

Not being particularly skilled with Go, I have no idea how to build this project.

/usr/bin/go build -ldflags "-X 'main.Name=beanstalkd-cli' -X 'main.Version=1.3.2 [4921228864cc84a4b92a1cf5d69a1927a87a8682]'" -o /home/drarok/downloads/beanstalkd-cli/bin/beanstalkd
-cli
main.go:8:2: cannot find package "github.com/edwinhoksberg/beanstalkd-cli/command" in any of:
        /usr/lib/go-1.10/src/github.com/edwinhoksberg/beanstalkd-cli/command (from $GOROOT)
        /home/drarok/go/src/github.com/edwinhoksberg/beanstalkd-cli/command (from $GOPATH)
main.go:9:2: cannot find package "github.com/urfave/cli" in any of:
        /usr/lib/go-1.10/src/github.com/urfave/cli (from $GOROOT)
        /home/drarok/go/src/github.com/urfave/cli (from $GOPATH)
Makefile:13: recipe for target 'build' failed
make: *** [build] Error 1

Connection refused when using --server

It seems the modifications in 1.4.0 broke the connection, using the prebuilt binary I now receive error "Could not connect to beanstalkd server error="dial tcp :0: connect: connection refused"

Notice it's trying to connect to tcp empty host and port 0.

Downgrading to version 1.3.2 works fine.

Pipe jobs in

Hi, there doesn't seem to be any way to pipe data in? Piping from a process, e.g. varnishncsa | ./beanstalkd-cli_linux_amd64 put seems to just buffer indefinitely instead of queueing jobs. How can I signal that each line should be treated as a job?

TTR params not working

Hello, in binaries file for macos beanstalkd-cli_darwin_amd64 put method add job to queue with ttr = 1 second, it ignored --ttr param and default value from help not working too (1h0m0s)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.