Giter Club home page Giter Club logo

Comments (3)

dalance avatar dalance commented on July 21, 2024

Thank you for your suggestion.
I want to add the feature, but there is a problem.

For example, procs -w 10 can be interpreted by the two ways.

  • watch mode with default value and filter by "10"
  • watch mode with 10s and no filter

I think there are some solution.
What do you think?

  • Use --
$ procs -w 10  // watch mode with 10s
$ procs -w -- 10 // watch mode with  default value and filter by "10"
  • --watch-interval option
$ procs -w  // watch mode with default value
$ procs -w --watch-interval 10 // watch mode with 10s
  • -w and -W
$ procs -w  // watch mode with default value
$ procs -W 10 // watch mode with 10s

from procs.

lightonflux avatar lightonflux commented on July 21, 2024

-- is good for people already familiar with shell in greater detail. And i think you application aims also for users that might not be as familiar with these quirks and like something simple and easy to use.

So i think having -w and -W is the best method. It is not the most beautiful solution, but the best middle ground for experienced and new users alike.

About: --watch-interval.
IMHO all options should have a long version. For documenting scrips later on.

So maybe

-w, --watch → default
-W [NUM] , --watch-interval [NUM] → custom value

from procs.

dalance avatar dalance commented on July 21, 2024

Thanks!
I agree -w and -W is best.
I released v0.9.6 which implements new options.

from procs.

Related Issues (20)

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.