Skip to content

Commit 6c63027

Browse files
committed
CI test prior to release
1 parent 8567df5 commit 6c63027

File tree

10 files changed

+314
-155
lines changed

10 files changed

+314
-155
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
.precomp
1+
.precomp/
2+
/Shell-Command-*
3+
*.rakucov

Changes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Revision history for Shell-Command
22

33
{{$NEXT}}
4+
- Tighten dependency on File::Find
5+
- Remove dependency on File::Which, it is no (longer?) needed
6+
- Update META and pod
7+
- Cleanup code, remove unimplemented / undocumented features
8+
- Simplify "cat" logic further
9+
- Add coverage tests (at 100%)
10+
- Add CI badge for each OS
11+
- Update copyright year
412

513
1.1 2023-07-30T21:34:55+02:00
614
- simplify "cat" logic

META6.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"auth": "zef:raku-community-modules",
33
"authors": [
4-
"Tadeusz “tadzik” Sośnierz",
4+
"Tadeusz Sośnierz",
55
"Dagur Valberg Johansson",
66
"Elizabeth Mattijsen",
77
"Filip Sergot",
@@ -11,16 +11,15 @@
1111
"Kamil Kułaga",
1212
"Moritz Lenz",
1313
"Steve Mynott",
14-
"timo",
14+
"Timo Paulssen",
1515
"Tobias Leich",
1616
"Tim Smith"
1717
],
1818
"build-depends": [
19-
"File::Find"
19+
"File::Find:ver<0.2.2+>:auth<zef:raku-community-modules>"
2020
],
2121
"depends": [
22-
"File::Which",
23-
"File::Find"
22+
"File::Find:ver<0.2.2+>:auth<zef:raku-community-modules>"
2423
],
2524
"description": "provide cross-platform routines emulating common *NIX shell commands",
2625
"license": "MIT",
@@ -31,7 +30,12 @@
3130
},
3231
"resources": [
3332
],
34-
"source-url": "git://github.com/raku-community-modules/Shell-Command.git",
33+
"source-url": "https://github.com/raku-community-modules/Shell-Command.git",
34+
"support": {
35+
"bugtracker": "https://github.com/raku-community-moduled/Shell-Command/issues",
36+
"email": "[email protected]",
37+
"source": "git://github.com/raku-community-modules/Shell-Command.git"
38+
},
3539
"tags": [
3640
"SHELL",
3741
"UNIX"

README.md

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Actions Status](https://github.com/raku-community-modules/Shell-Command/actions/workflows/test.yml/badge.svg)](https://github.com/raku-community-modules/Shell-Command/actions)
1+
[![Actions Status](https://github.com/raku-community-modules/Shell-Command/actions/workflows/linux.yml/badge.svg)](https://github.com/raku-community-modules/Shell-Command/actions) [![Actions Status](https://github.com/raku-community-modules/Shell-Command/actions/workflows/macos.yml/badge.svg)](https://github.com/raku-community-modules/Shell-Command/actions) [![Actions Status](https://github.com/raku-community-modules/Shell-Command/actions/workflows/windows.yml/badge.svg)](https://github.com/raku-community-modules/Shell-Command/actions)
22

33
NAME
44
====
@@ -8,46 +8,41 @@ Shell::Command - provide cross-platform routines emulating common *NIX shell com
88
SYNOPSIS
99
========
1010

11-
use Shell::Command;
11+
```raku
12+
use Shell::Command;
1213

13-
# Recursive folder copy
14-
cp 't/dir1', 't/dir2', :r;
14+
# Recursive folder copy
15+
cp 't/dir1', 't/dir2', :r;
1516

16-
# Remove a file
17-
rm_f 'to_delete';
17+
# Remove a file
18+
rm_f 'to_delete';
1819

19-
# Remove directory
20-
rmdir 't/dupa/foo/bar';
20+
# Remove directory
21+
rmdir 't/dupa/foo/bar';
2122

22-
# Make path
23-
mkpath 't/dir2';
23+
# Make path
24+
mkpath 't/dir2';
2425

25-
# Remove path
26-
rm_rf 't/dir2';
26+
# Remove path
27+
rm_rf 't/dir2';
2728

28-
# Find Raku in executable path
29-
my $raku-path = which('raku');
29+
# Find Raku in executable path
30+
my $raku-path = which('raku');
3031

31-
# Concatenate the contents of a file or list of files and print to STDOUT
32-
cat "file1.txt", "file2.txt";
32+
# Concatenate the contents of a file or list of files and print to STDOUT
33+
cat "file1.txt", "file2.txt";
3334

34-
# A cross platfrom syncronous run()
35-
my $command = $*DISTRO.is-win ?? 'binary.exe' !! 'binary';
36-
run-command($binary, 'some', 'parameter');
35+
# A cross platfrom syncronous run()
36+
my $command = $*DISTRO.is-win ?? 'binary.exe' !! 'binary';
37+
run-command($binary, 'some', 'parameter');
38+
```
3739

3840
AUTHOR
3941
======
4042

41-
Tadeusz “tadzik” Sośnierz"
43+
Tadeusz Sośnierz
4244

43-
COPYRIGHT AND LICENSE
44-
=====================
45-
46-
Copyright 2010-2017 Tadeusz Sośnierz Copyright 2023 Raku Community
47-
48-
This library is free software; you can redistribute it and/or modify it under the MIT license.
49-
50-
Please see the LICENCE file in the distribution
45+
Source can be located at: https://github.com/raku-community-modules/Shell-Command . Comments and Pull Requests are welcome.
5146

5247
CONTRIBUTORS
5348
============
@@ -70,7 +65,7 @@ CONTRIBUTORS
7065

7166
* Steve Mynott
7267

73-
* timo
68+
* Timo Paulssen
7469

7570
* Tobias Leich
7671

@@ -80,3 +75,14 @@ CONTRIBUTORS
8075

8176
* Martin Barth
8277

78+
COPYRIGHT AND LICENSE
79+
=====================
80+
81+
Copyright 2010-2017 Tadeusz Sośnierz
82+
83+
Copyright 2023-2025 Raku Community
84+
85+
This library is free software; you can redistribute it and/or modify it under the MIT license.
86+
87+
Please see the LICENCE file in the distribution
88+

dist.ini

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ name = Shell-Command
22

33
[ReadmeFromPod]
44
; enabled = false
5-
filename = lib/Shell/Command.rakumod
5+
filename = doc/Shell-Command.rakudoc
66

77
[UploadToZef]
88

99
[PruneFiles]
1010
; match = ^ 'xt/'
1111

1212
[Badges]
13-
provider = github-actions/test.yml
13+
provider = github-actions/linux.yml
14+
provider = github-actions/macos.yml
15+
provider = github-actions/windows.yml

doc/Shell-Command.rakudoc

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
=begin pod
2+
3+
=head1 NAME
4+
5+
Shell::Command - provide cross-platform routines emulating common *NIX shell commands
6+
7+
=head1 SYNOPSIS
8+
9+
=begin code :lang<raku>
10+
use Shell::Command;
11+
12+
# Recursive folder copy
13+
cp 't/dir1', 't/dir2', :r;
14+
15+
# Remove a file
16+
rm_f 'to_delete';
17+
18+
# Remove directory
19+
rmdir 't/dupa/foo/bar';
20+
21+
# Make path
22+
mkpath 't/dir2';
23+
24+
# Remove path
25+
rm_rf 't/dir2';
26+
27+
# Find Raku in executable path
28+
my $raku-path = which('raku');
29+
30+
# Concatenate the contents of a file or list of files and print to STDOUT
31+
cat "file1.txt", "file2.txt";
32+
33+
# A cross platfrom syncronous run()
34+
my $command = $*DISTRO.is-win ?? 'binary.exe' !! 'binary';
35+
run-command($binary, 'some', 'parameter');
36+
=end code
37+
38+
=head1 AUTHOR
39+
40+
Tadeusz Sośnierz
41+
42+
Source can be located at: https://github.com/raku-community-modules/Shell-Command
43+
. Comments and Pull Requests are welcome.
44+
45+
=head1 CONTRIBUTORS
46+
47+
=item Dagur Valberg Johansson
48+
=item Elizabeth Mattijsen
49+
=item Filip Sergot
50+
=item Geoffrey Broadwell
51+
=item GlitchMr
52+
=item Heather
53+
=item Kamil Kułaga
54+
=item Moritz Lenz
55+
=item Steve Mynott
56+
=item Timo Paulssen
57+
=item Tobias Leich
58+
=item Tim Smith
59+
=item Ahmad M. Zawawi (azawawi @ #raku)
60+
=item Martin Barth
61+
62+
=head1 COPYRIGHT AND LICENSE
63+
64+
Copyright 2010-2017 Tadeusz Sośnierz
65+
66+
Copyright 2023-2025 Raku Community
67+
68+
This library is free software; you can redistribute it and/or modify it under the MIT license.
69+
70+
Please see the LICENCE file in the distribution
71+
72+
=end pod
73+
74+
# vim: expandtab shiftwidth=4

0 commit comments

Comments
 (0)