Chit/Command/which.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 41 CC 1 SCAR 6.9
CC
1
Cov
0%
abstract
2.0
opt_spec
2.0
execute
2.0
CRAP 2.0
1 use v5.20;
2 use strict;
3 use warnings;
4 use experimental qw( signatures lexical_subs postderef );
5  
6 package App::Chit::Command::which;
7  
8 use App::Chit -command;
9  
10 use App::Chit::Util ();
11  
12 our $AUTHORITY = 'cpan:TOBYINK';
13 our $VERSION = '0.001001';
14  
15 sub abstract {
16 return "Which directory is this chat associated with?"
17 }
18  
19 sub opt_spec {
20 return ();
21 }
22  
23 sub execute ( $self, $opt, $args ) {
24 my $dir = App::Chit::Util::find_chit_dir()
25 or $self->usage_error("need to initialize chit first");
26 print $dir->absolute->stringify, "\n";
27 }
28  
29 1;