Giter VIP home page Giter VIP logo

memorial's Introduction

Ever wanted to keep track of how something has changed while you're working on it locally?

Usage

<some command that outputs files/lines/etc...> | memorial --lines --print

Gives you the original command followed by:

original command output
...

Latest measurement: 26 lines

      26.00 ┼   ╭
      22.75 ┼──╮│
      19.50 ┤  ││
      16.25 ┤  ││
      13.00 ┤  ╰╯
       9.75 ┤
       6.50 ┤
       3.25 ┤
       0.00 ┤

Do more work, run the command again, piped into memorial --lines --print and see the trend:

original command output
...

Latest measurement: 13 lines

      26.00 ┼   ╭╮
      22.75 ┼──╮│╰─╮
      19.50 ┤  ││  │╭╮
      16.25 ┤  ││  ╰╯│
      13.00 ┤  ╰╯    ╰─
       9.75 ┤
       6.50 ┤
       3.25 ┤
       0.00 ┤

Print

Show the current trend line at any time:

> memorial --print

Can be coupled with --lines to count the number of lines read on STDIN and then show the trendline when the input stream terminates.

Table

Show the raw measurements at any time:

> memorial --table

Can be coupled with --lines to count the number of lines read on STDIN and then show the raw measurements when the input stream terminates.

Purge

Purge all measurements and start with a blank slate:

> memorial --purge

Measurement schemes

memorial can gather the measurement to track by:

Counting lines (--lines)

The --lines mode will simply count the number of lines of input passed to memorial on STDIN and consider the total for a given invocation to be the measurement to store.

When to use:

  • using grep (or similar) to find all occurrences of the metric to measure

memorial's People

Contributors

calebpeterson avatar

Watchers

 avatar  avatar

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.