#!/usr/bin/env perl

use strict;
use warnings;

use File::Basename qw(basename);
use File::Spec;
use FindBin qw($Bin);

my $command = basename($0);
my $core = File::Spec->catfile( $Bin, '_dashboard-core' );
exec { $^X } $^X, $core, $command, @ARGV;
die "Unable to exec $core for $command: $!";

__END__

=pod

=head1 NAME

indicator - private built-in command wrapper for Developer Dashboard

=head1 SYNOPSIS

  dashboard indicator ...

=head1 DESCRIPTION

This private helper is staged under F<~/.developer-dashboard/cli/dd/> so the
public C<dashboard> entrypoint can stay a thin switchboard.

=for comment FULL-POD-DOC START

=head1 PURPOSE

This staged helper exposes indicator maintenance commands such as C<dashboard indicator set>, C<list>, and C<refresh-core>. It is the CLI surface for prompt and browser status indicators.

=head1 WHY IT EXISTS

It exists because indicators are a built-in dashboard feature, but the wrapper should stay thin while the indicator store and refresh logic own persistence and status semantics.

=head1 WHEN TO USE

Use this file when changing indicator CLI verbs, refresh-core behavior, or the handoff into the indicator subsystem.

=head1 HOW TO USE

Users run C<dashboard indicator ...>. The staged helper forwards those arguments into the private runtime, which updates indicator state or recomputes the built-in project/docker/git indicators.

=head1 WHAT USES IT

It is used by developers curating prompt indicators, by integration smoke that verifies prompt/status output, and by indicator regression tests.

=head1 EXAMPLES

Example 1:

  dashboard indicator refresh sample-indicator

Run the public built-in command path that stages or re-enters this helper.

Example 2:

  ~/.developer-dashboard/cli/dd/indicator --help

Inspect the staged helper directly after C<dashboard init> or helper extraction has populated the home runtime.

Example 3:

  prove -lv t/05-cli-smoke.t t/30-dashboard-loader.t

Rerun the focused staged-helper and thin-loader tests after changing helper dispatch behavior.

Example 4:

  prove -lr t

Verify that the helper still behaves correctly inside the complete repository suite.


=for comment FULL-POD-DOC END

=cut
