Skip to content

0rvar/oneline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oneline

Run commands with all output displayed on a single line for cleaner terminal output.

Features

oneline demo

  • Shows command output on a single, continuously updating line
  • Automatically truncates output to fit your terminal width
  • Preserves ANSI color codes and formatting
  • Optional custom labels for the output line
  • Shows full output on error for easy debugging

Installation

Nix

nix profile install github:0rvar/oneline

Or add to your flake to make available in direnv, something like:

{
  inputs.oneline.url = "github:0rvar/oneline";
  # ...
  outputs = { self, nixpkgs, oneline }: {
    packages = forAllSystems (pkgs: system: {
      buildInputs = [oneline]
    })
  };
}

Cargo

cargo install oneline

Usage

oneline [--label "Custom Label"] command [args...]

Examples

Run a build command with default label:

oneline cargo build --release

Run with a custom label:

oneline --label "Installing Deps" npm install

Run multiple commands with descriptive labels:

oneline --label "Building Frontend" npm run build && \
oneline --label "Building Backend" cargo build --release

Why use oneline?

Many command-line tools produce verbose, multi-line output that can clutter your terminal. oneline condenses all that output into a single, continuously updating line, keeping your terminal clean while still showing you what's happening.

Perfect for:

  • Build scripts and CI pipelines
  • Installation processes
  • Any verbose commands where you want to see progress without the clutter

License

MIT

About

Run commands with all output displayed on a single line for cleaner terminal output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published