Shell::Command

provide **cross-platform** routines emulating common \*NIX shell commands

NAME

Shell::Command - provide cross-platform routines emulating common *NIX shell commands

SYNOPSIS

use Shell::Command;

# Recursive folder copy
cp 't/dir1', 't/dir2', :r;

# Remove a file
rm_f 'to_delete';

# Remove directory
rmdir 't/dupa/foo/bar';

# Make path
mkpath 't/dir2';

# Remove path
rm_rf 't/dir2';

# Find Raku in executable path
my $raku-path = which('raku');

# Concatenate the contents of a file or list of files and print to STDOUT
cat "file1.txt", "file2.txt";

# A cross platfrom syncronous run()
my $command = $*DISTRO.is-win ?? 'binary.exe' !! 'binary';
run-command($binary, 'some', 'parameter');

AUTHOR

Tadeusz “tadzik” Soƛnierz"

COPYRIGHT AND LICENSE

Copyright 2010-2017 Tadeusz Soƛnierz Copyright 2023 Raku Community

This library is free software; you can redistribute it and/or modify it under the MIT license.

Please see the LICENCE file in the distribution

CONTRIBUTORS

  • Dagur Valberg Johansson

  • Elizabeth Mattijsen

  • Filip Sergot

  • Geoffrey Broadwell

  • GlitchMr

  • Heather

  • Kamil KuƂaga

  • Moritz Lenz

  • Steve Mynott

  • timo

  • Tobias Leich

  • Tim Smith

  • Ahmad M. Zawawi (azawawi @ #raku)

  • Martin Barth

Shell::Command v1.0

provide **cross-platform** routines emulating common \*NIX shell commands

Authors

  • Tadeusz “tadzik” Soƛnierz
  • Dagur Valberg Johansson
  • Elizabeth Mattijsen
  • Filip Sergot
  • Geoffrey Broadwell
  • GlitchMr
  • Heather
  • Kamil KuƂaga
  • Moritz Lenz
  • Steve Mynott
  • timo
  • Tobias Leich
  • Tim Smith

License

MIT

Dependencies

File::WhichFile::Find

Test Dependencies

Provides

  • Shell::Command

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.