| 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; |