Git Product home page Git Product logo

gwatch's Introduction

gwatch (go-watch)

Rewriting of the original watch linux command in order to add some new feature to it:

  • Better view.
  • Execute 2, 3 or 4 commands simultaneously.

Why ?

I'm working on Kubernetes every single day. And my team and I are using a lot the watch tool to monitor if our last change was well applied by Flux for example. I usually need to open 2, 3 in my term/tmux to be able to monitor everything. With this tool, we will be able to monitor 2 or 3 things at once.

What does it look like ?

1 command

Screenshot1

2 commands

Screenshot2

3 commands

Screenshot3

4 commands

Screenshot4

How to use it ?

# basic execution
gwatch "command"

# interval selection (in seconds)
gwatch "command" -i 5

# multiple commands
gwatch "command1" "command2" "command3" "command4"
or
gwatch -c "command1" -c "command2" -c ...

How to install ?

Clone the repository then:

$ make build

Incoming features ?

  • Multicommand support.
  • Change interval support.
  • Exec commands asynchronously.
  • Highlight differences with -d or --differences flag
  • Choose the layout when there is 2 or 3 commandes ?
  • Handle command with a pipe -> "kubectl get pods | grep test"

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.