diff options
author | EuAndreh <eu@euandre.org> | 2019-01-05 09:05:36 -0200 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-01-05 09:05:36 -0200 |
commit | e6cf841ef23a80048c702362329b3428129520cf (patch) | |
tree | 0968d205fa703b3681f1b783286710528b6c5a30 /website | |
parent | TODOs.org. (diff) | |
download | euandre.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-x | website | 5 | ||||
-rwxr-xr-x | website.bats | 11 |
2 files changed, 2 insertions, 14 deletions
@@ -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 |