pathdebug

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

README

pathdebug

a simple interactive & one-shot tool to debug path list environment variables

Go Report Card FOSSA Status

Features

  • detect duplicate expanded path entries
  • detecting non-existent paths and files
  • interactive mode
  • noninteractive formatted output

Install

from source:

go install

from github:

go install github.com/d-led/pathdebug@latest

replace latest with the desired/latest commit hash if you had the tool installed already.

alternatively, download the binary from Github releases.

On OSX you might need to run sudo xattr -d com.apple.quarantine pathdebug on the downloaded binary.

Usage

pathdebug {nameOfEnvironmentVariable}

help:

pathdebug --help
Interactive
export SOME_PATH='/sbin:~/.bashrc:/a:/b:/a:/c:/d:/e:/f:/g'
pathdebug SOME_PATH

tap Esc/q/Ctrl-C to quit, <-/-> to paginate
+---+--------+-----+-----------+
| # | DUP[#] | BAD | PATH      |
+---+--------+-----+-----------+
| 1 |        |     | /sbin     |
| 2 |        | F   | ~/.bashrc |
| 3 | 5      | X   | /a        |
| 4 |        | X   | /b        |
| 5 | 3      | X   | /a        |
| 6 |        | X   | /c        |
+---+--------+-----+-----------+
  •○
Direct Output
export SOME_PATH='/sbin:~/.bashrc:/a:/b:/a:/c:/d:/e:/f:/g'
pathdebug SOME_PATH -o table

see help for other formats

License

FOSSA Status

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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