Giter Club home page Giter Club logo

duration's Introduction

Duration

CI Go Report Card

  1. Why
  2. Usage 2.1 Important
  3. Installation
    3.1 From Source
    3.2 With Go
    3.3 From Release Page
    3.3 via AUR

Why?

If you have processes which takes a bit longer, especially if you know round about how much time it takes to complete, it is cool to know how long the process is already running.

example

Usage

USAGE: duration [h|help|v|version|<command>]
where
        [v|version] - prints the version
        [h|help] - prints the help
        <command> - a SINGLE command or script to execute

would work:
        duration sleep 5
        duration script.sh
would NOT work:
        duration sleep 5 && sleep 4

Important

It's important to understand that currently only a single command with or without arguments can be executed. If you are chaining commands with || or && or for example, you need to put your command into a script and execute that.

Installation

Open In Devbox.sh

From Source

In order to build from source you need go and make installed. Run: make build, this will place a binary duration in a $PWD/bin, directory.

cd ~/ && \
git clone [email protected]:mstruebing/duration.git && \
cd duration && \
make build && \
duration

Then put the binary somewhere in your $PATH

With Go

go get -u github.com/mstruebing/duration

From Release Page

You can also grab a release from the release page.

Via AUR

If you use Arch-Linux you can simply install the duration-git-package. AUR-link

i.e:

trizen -S duration-git 

License

Duration is open source software licensed under the MIT License.

See the LICENSE file for more.

duration's People

Contributors

mstruebing avatar alexndrmac avatar dependabot-preview[bot] 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.