in

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 6 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

Run GOGC=off go install ask.systems/in@latest

Disabling the garbage collector is optional, but it's fun to do it, since this program only allocates a constant amount of data. If you don't disable it, it will probably still never be triggered to run.

Alternatively I have added a fancy go shebang line that I adapted so that go fmt wouldn't break it. So you can actually just download the in.go file, chmod +x in.go and run it like a script ./in.go 10s (as long as you have go installed).

Run wget ask.systems/in.go && chmod +x in.go to get it.

License

Released under the Apache 2.0 License, which is a permissive license so use and fork as desired. While the copyright is owned by Google (because I work there).

This is not an official Google product, it is my personal project. Google disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.

Contributing

Please do not contribute code, only issues. In order for me to accept contributions you would need to sign the Google CLA and I don't think it is worth it for this.

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

Jump to

Keyboard shortcuts

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