aboutsummaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2019-01-05 09:05:36 -0200
committerEuAndreh <eu@euandre.org>2019-01-05 09:05:36 -0200
commite6cf841ef23a80048c702362329b3428129520cf (patch)
tree0968d205fa703b3681f1b783286710528b6c5a30 /website
parentTODOs.org. (diff)
downloadeuandre.org-e6cf841ef23a80048c702362329b3428129520cf.tar.gz
euandre.org-e6cf841ef23a80048c702362329b3428129520cf.tar.xz
Add BATS tests to CLI usage and basic interactions.
Also, remove custom =nix-shell= shebang from Perl files. Instead, we should inherit Perl from the =shell= derivation in default.nix.
Diffstat (limited to '')
-rwxr-xr-xwebsite5
-rwxr-xr-xwebsite.bats11
2 files changed, 2 insertions, 14 deletions
diff --git a/website b/website
index f6e060e..9d6c648 100755
--- a/website
+++ b/website
@@ -1,5 +1,4 @@
-#!/usr/bin/env nix-shell
-#!nix-shell -i perl -p perl less nix --pure -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-18.09.tar.gz
+#!/usr/bin/env perl
=head1 NAME
@@ -69,7 +68,7 @@ sub dispatch {
-exitval => 0
);
} elsif (!defined $action) {
- print "Missing subcomand.\n";
+ print "Missing subcommand.\n";
pod2usage(
-verbose => 1,
-exitval => 2
diff --git a/website.bats b/website.bats
deleted file mode 100755
index c9319ed..0000000
--- a/website.bats
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env bats
-
-# @test "Help: show short usage when no subcommand is given." {
-# run ./cli.pl
-# [[ "$status" -eq 1 ]]
-# }
-
-# print short usage
-# show manpage
-# create pastebin
-# create a slide