Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azawawi/raku-file-which
Cross platform Raku executable path finder (aka which on UNIX)
https://github.com/azawawi/raku-file-which
raku
Last synced: about 2 months ago
JSON representation
Cross platform Raku executable path finder (aka which on UNIX)
- Host: GitHub
- URL: https://github.com/azawawi/raku-file-which
- Owner: azawawi
- License: mit
- Created: 2015-07-29T12:14:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-10-24T20:43:15.000Z (about 2 years ago)
- Last Synced: 2023-03-31T12:17:43.591Z (almost 2 years ago)
- Topics: raku
- Language: Raku
- Homepage:
- Size: 75.2 KB
- Stars: 7
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# File::Which
[![Actions
Status](https://github.com/azawawi/raku-file-which/workflows/test/badge.svg)](https://github.com/azawawi/raku-file-which/actions)This is a Raku Object-oriented port of [File::Which (CPAN)](
https://metacpan.org/pod/File::Which).File::Which finds the full or relative paths to an executable program on the
system. This is normally the function of which utility which is typically
implemented as either a program or a built in shell command. On some unfortunate
platforms, such as Microsoft Windows it is not provided as part of the core
operating system.This module provides a consistent API to this functionality regardless of the
underlying platform.```Raku
use File::Which :whence;# All raku executables in PATH
say which('raku', :all);# First executable in PATH
say which('raku');# Same as which('raku')
say whence('raku');
```## Installation
To install it using zef (a module management tool bundled with Rakudo Star):
```
$ zef install File::Which
```## Testing
- To run tests:
```
$ prove --ext .rakutest -ve "raku -I."
```- To run all tests including author tests (Please make sure
[Test::Meta](https://github.com/jonathanstowe/Test-META) is installed):
```
$ zef install Test::META
$ AUTHOR_TESTING=1 prove --ext .rakutest -ve "raku -I."
```## Author
Raku port:
- Ahmad M. Zawawi, azawawi on #raku, https://github.com/azawawi/
- Nick Logan, ugexe on #raku, https://github.com/ugexe
- Steve Dondley, sdondley on #raku, https://github.com/sdondleyA bit of tests:
- Altai-man, sena_kun on libera, https://github.com/Altai-man/Perl 5 version:
- Author: Per Einar Ellefsen
- Maintainers:
- Adam Kennedy
- Graham Ollis## License
MIT License