aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/open
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/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) { * }
#