module Which

Overview

A simple Crystal library for locating the absolute path of a file along the $PATH environment variable's various paths.

Extended Modules

Defined in:

which.cr

Constant Summary

PATH = (PATHTEXT.split(':')).map(&->Path.new(String))

Array(Path) representing the paths found in the $PATH environment variable

PATHTEXT = ENV["PATH"]

Instance Method Summary

Instance Method Detail

def executable(name : Path | String) : Path #

[View source]
def executable?(name : Path | String) : Path | Nil #

[View source]