Git Product home page Git Product logo

revolver's Introduction

Revolver

A progress spinner for ZSH scripts

asciicast

Installation

zulu install revolver

zplug

zplug "molovo/revolver", \
  as:command, \
  use:revolver
brew install molovo/revolver/revolver

Manual

git clone https://github.com/molovo/revolver revolver
chmod u+x revolver/revolver
mv revolver/revolver /usr/local/bin

Usage

revolver start 'Your awesome message'

# Do something here

revolver update 'A different message'

# Do something else here

revolver stop

Styles

Revolver comes with a revolver demo command which demonstrates each of the included spinner styles. Once you've found one you like, select it using the --style option.

revolver --style 'bouncingBall' start 'The spinner message'

License

Copyright (c) 2016 James Dinsdale [email protected] (molovo.co)

Revolver is licensed under The MIT License (MIT)

Team

revolver's People

Contributors

artdevjs avatar danielbayley avatar molovo avatar psprint 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

revolver's Issues

The homebrew statement "bottle :unneeded" is deprecated and needs to be removed

The statement "bottle :unneeded" in the homebrew formula revolver.rb is deprecated:

https://github.com/molovo/homebrew-revolver/blob/master/Formula/revolver.rb#L6

It prevents homebrew from installing revolver:

% brew install molovo/revolver/revolver
==> Tapping molovo/revolver
Cloning into '/usr/local/Homebrew/Library/Taps/molovo/homebrew-revolver'...
remote: Enumerating objects: 8, done.
remote: Total 8 (delta 0), reused 0 (delta 0), pack-reused 8
Receiving objects: 100% (8/8), done.
Resolving deltas: 100% (1/1), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/molovo/homebrew-revolver/Formula/revolver.rb
revolver: Calling bottle :unneeded is disabled! There is no replacement.
Please report this issue to the molovo/revolver tap (not Homebrew/brew or Homebrew/core):
/usr/local/Homebrew/Library/Taps/molovo/homebrew-revolver/Formula/revolver.rb:6

Error: Cannot tap molovo/revolver: invalid syntax in tap!

Removing the statement should resolve the problem.

Print mesg before revolver?

I don't use mesg with revolver because it gives spalsh as same as the progress bar. I want the text is static. e.g:

echo "test" &&  sleep 20 & \
> revolver -i start

Here I want test ⣾. But revolver keep display on new line, so I get:

test
⣾

How to have the above expected result?

avoid ZDOTDIR as a default location for state files

Hi,

I was wondering if i could i ask you to reconsider the location where revolver stores its state files. The $REVOLVER_DIR is set to $ZDOTDIR/.revolver in my case and the $ZDOTDIR directory is often under version control. Would it be possible to try using XDG_CACHE_HOME if it is set?

dir=${REVOLVER_DIR:-${XDG_CACHE_HOME:-$HOME/.cache}/.revolver}

Also i see it is possible to set $REVOLVER_DIR manually and change this directory, but there is no mention of it in README.
Thanks.

dir=${REVOLVER_DIR:-"${ZDOTDIR:-$HOME}/.revolver"}

dir=${REVOLVER_DIR:-"${ZDOTDIR:-$HOME}/.revolver"}

dir=${REVOLVER_DIR:-"${ZDOTDIR:-$HOME}/.revolver"}

dir=${REVOLVER_DIR:-"${ZDOTDIR:-$HOME}/.revolver"}

macOS demo bug

usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
usage: sleep seconds
...

Reduce resource usage

Currently when there are a few nested calls to revolver within long running processes (such as Zulu's unit tests, using ZUnit) the number of processes spawned can cause the machine to lock up and hang. Need to find a way to reduce the number of processes spawned, perhaps by making revolver check for any other running processes when it is launched and 'pausing' them in some way.

Error when selecting style

❯ revolver --style 'dots2' 'The spinner message'
Command The spinner message is not recognised

❯ revolver 'The spinner message' --style 'dots2'
Command The spinner message is not recognised
zsh --version
zsh 5.8 (x86_64-apple-darwin19.3.0)

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.