A simple command-line tool for displaying local network interface information
ipl
quickly lists your network interfaces, along with their IPv4 addresses and subnet masks, in a clean, color-coded output.
- Clear Output: Displays interface name, IPv4 address, and mask in a single, readable line.
- Color-Coded: Uses colors to distinguish between different parts of the output for better readability.
- Cross-Platform: Works on Linux, Windows, and macOS.
To build the project, you need to have Go installed.
go build .
Alternatively, if you have just
installed, you can simply run:
task build
- Try it without installing:
nix run github:qrxnz/ipl
- Installation:
Add input in your flake like:
{
inputs = {
ipl = {
url = "github:qrxnz/ipl";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}
With the input added you can reference it directly:
{ inputs, system, ... }:
{
# NixOS
environment.systemPackages = [ inputs.ipl.packages.${pkgs.system}.default ];
# home-manager
home.packages = [ inputs.ipl.packages.${pkgs.system}.default ];
}
or
You can install this package imperatively with the following command:
nix profile install github:qrxnz/ipl
Run the compiled binary from your terminal:
ipl
This project is licensed under the MIT License.