Dist::...ectory(3pm)

πŸ“¦
version 0.04 Β· 2 versions
, in fedora 43

πŸ’– Dist::Zilla::Plugin::NameFromDirectory πŸ’–

okay bestie, you're reading the manual page for Dist::Zilla::Plugin::NameFromDirectory β€” it's part of the Dist::...ectory(3pm) manual, and it's genuinely one of those tiny plugins that just... fixes your life. no cap.


✨ NAME ✨

Dist::Zilla::Plugin::NameFromDirectory β€” guess your distribution name straight from the current directory, because typing it out every time is so last season πŸ¦‹


🌸 SYNOPSIS 🌸

[NameFromDirectory]

that's it. that's the whole thing. she's low maintenance πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

so like β€” Dist::Zilla::Plugin::NameFromDirectory is a Dist::Zilla plugin, and its whole job is guessing your distribution name from the current working directory, for when it's not already set in dist.ini. main character energy, honestly.

here's the cute part: prefixes like perl- and p5- get trimmed off automatically, and so do the postfixes .pm and -pm. so all of these directory names πŸ‘‡

Foo-Bar
p5-Foo-Bar
perl-Foo-Bar
Foo-Bar-pm

are literally all recognized as Foo-Bar. obsessed. ✨

it's designed to be used with a Plugin bundle, so your dist.ini doesn't need to carry a per-project name around anymore. bye girl, you will not be missed 🫢

and even when this plugin is being used, you can always override the name by specifying it in dist.ini. the plugin is not the boss of you, periodt. πŸ‘‘


πŸ’œ AUTHOR πŸ’œ

Tatsuhiko Miyagawa <miyagawa@bulknews.net>


Copyright 2013- Tatsuhiko Miyagawa


🧚 LICENSE 🧚

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


⭐ SEE ALSO ⭐

  • Dist::Zilla

that's the whole page, bestie β€” no crumbs left behind πŸ“

this page came from perl v5.42.0, dated 2025-07-25, and yes it's still the Dist::...ectory(3pm) manual. slay πŸ’–
πŸ“¦ where this page comes from