in

command module
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

in.go

A short little program I wrote to display a progress bar while waiting for a command to run.

Use it like: in 2m30s && run_a_command

My main use case is a server that has a BIOS that is slow to reboot and I want to ssh back in when it's up.

Installing

Just run go build in.go and move the in binary into ~/bin or ~/.local/bin

You can change the constants at the top or edit the function to customize the appearance of the progress bar!

License

Released under the Apache 2.0 License, which is a permissive license so use and fork as desired. Technically Google owns the copyright since I work there and I decided to release this under the "below 100 lines" policy that allows me to use the Apache license without explicit approval.

Documentation

Overview

in is a commandline utility that sleeps for a specified amount of time while displaying a progress bar.

Ex: in 2m30s && run_a_command

Author: Andrew Kallmeyer Copyright 2021 Google LLC. SPDX-License-Identifier: Apache-2.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL