NAME

of - private open-file helper for Developer Dashboard

SYNOPSIS

d2 of [--print] [--line N] [--editor CMD] [--online] <file|scope> [pattern...]

DESCRIPTION

This private helper is staged under ~/.developer-dashboard/cli/dd/ so the main d2 command can keep file-opening behaviour available without installing a generic executable into the user's global PATH.

PURPOSE

This staged helper exposes d2 of, the short name for the dashboard open-file command. It is the shell-facing entrypoint for direct file opens, scoped regex search, Perl module lookup, Java dotted class lookup, and the print-vs-editor decision that happens after resolution.

WHY IT EXISTS

It exists because file lookup is a frequent interactive task and should stay fast to type, but the public switchboard still needs to stay thin. The helper lets users type d2 of ... while the heavy search and ranking rules stay in Developer::Dashboard::CLI::OpenFile.

WHEN TO USE

Use this file when changing the short-form CLI contract for open-file behavior, the staged-helper handoff, or the exact examples contributors see when they look up how d2 of behaves.

HOW TO USE

Users run d2 of [--print] [--line N] [--editor CMD] [--online] <file|scope> [pattern ...]. Direct paths and file:line arguments resolve immediately. In scoped mode the first positional argument is the search root or saved alias, and every extra positional argument is a case-insensitive regex that must match the candidate path. One hit opens or prints that file; multiple hits are listed. Perl module names such as Developer::Dashboard::CLI::Paths resolve through @INC, and Java class names such as javax.jws.WebService resolve through source trees or local source archives entirely offline; pass --online to also search Maven Central and download a cached source jar when neither is found locally.

WHAT USES IT

It is used by developers jumping to source files from the shell, by open-file regression tests, and by docs that explain scoped regex lookup, Perl module resolution, Java source lookup, and print-vs-editor behavior.

EXAMPLES

d2 of lib 'OpenFile\.pm$'
d2 of . "Ok\.js$"
d2 of Developer::Dashboard::CLI::Paths
d2 of javax.jws.WebService
d2 of --online javax.jws.WebService
d2 of --print bookmarks index