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-05-27 10:27:57 +0200
commit926e5dc63cdfd62342b1727d84d04b34a39e76ca (patch)
treec9de07cce02e9d52748d1360cf5c31b0c549cf39
parenta3f3b2e95e0df7cc89db5ad2f15bd3856c18b94f (diff)
downloaddotfiles-926e5dc63cdfd62342b1727d84d04b34a39e76ca.tar.gz
dotfiles-926e5dc63cdfd62342b1727d84d04b34a39e76ca.tar.bz2
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) { * }
#