aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2021-05-27 10:27:57 +0200
committerPatrick Spek <p.spek@tyil.nl>2021-08-14 12:01:20 +0200
commitf489ef3f81889748a91c0f01562095952b4296e4 (patch)
treec9de07cce02e9d52748d1360cf5c31b0c549cf39
parent08db90cb85f6d772aa1120bc608cd62126cff678 (diff)
Add a license header to 'open'
-rwxr-xr-x.local/bin/open17
1 files changed, 16 insertions, 1 deletions
diff --git a/.local/bin/open b/.local/bin/open
index a668bc3..068af10 100755
--- a/.local/bin/open
+++ b/.local/bin/open
@@ -1,5 +1,20 @@
#!/usr/bin/env raku
+# open
+# Copyright (C) 2021 Patrick "tyil" SPek
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License, version 3, as published
+# by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
use URL;
subset HttpUrl of URL where *.scheme ∈ < http https >;
@@ -32,7 +47,7 @@ sub objectify-target (
IO::Path.new($target);
}
-#| The cmd sub returns an iterable containing the command and all arguments.
+#| The cmd sub returns a Str to be executed in a shell context.
proto cmd ($ --> Str) { * }
#