NAME

file - private file helper for Developer Dashboard

SYNOPSIS

d2 file <resolve|locate|add|del|list> ...

DESCRIPTION

This private helper is staged under ~/.developer-dashboard/cli/dd/ so the main d2 command can keep file registry operations available without loading the full runtime first.

PURPOSE

This staged helper exposes the d2 file ... subcommand family: resolve, locate, add, del, and list. It is the public CLI front end for saved file aliases and lightweight file lookup.

WHY IT EXISTS

It exists because file alias commands are built-ins, but the actual lookup and config persistence rules need to live in Perl so shell users and tests all see one behavior.

WHEN TO USE

Use this file when changing d2 file verbs, staged-helper argv handling, or the examples that describe file alias resolution and lookup.

HOW TO USE

Users run d2 file <verb> .... The staged helper loads the file command runtime and prints either JSON or line-oriented output depending on the selected subcommand.

WHAT USES IT

It is used by the public file command family and by regression tests that verify file alias persistence, resolution, and locate behavior.

EXAMPLES

d2 file resolve global_config
d2 file add notes ~/notes.txt
d2 file locate notes txt
d2 file list
d2 file del notes