Dist::...gSlicer(3pm)

πŸ“¦
version 0.202 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Dist::Zilla::PluginBundle::ConfigSlicer πŸ’–

aka Dist::...gSlicer(3pm) β€” the Perl doc you're reading rn, bestie 🫢

okay so listen. you know how some plugin bundles are like "my config is my config, take it or leave it"? not on my watch. This one is a lil gremlin that wraps another bundle and edits its outfit mid-run. iconic behavior honestly πŸ‘‘


✨ NAME ✨

Dist::Zilla::PluginBundle::ConfigSlicer β€” Load another bundle and override its plugin configurations πŸ’…


🌸 VERSION 🌸

version 0.202 ✨ (yes she's got a version, she's a real one)


πŸ¦‹ SYNOPSIS πŸ¦‹

so you drop this in your dist.ini and it just… works:

; in your dist.ini:

[@ConfigSlicer]
-bundle = @Classic
-remove = PodVersion
-remove = Manifest
option = for_classic
ManifestSkip.skipfile = something.weird

like. look at that. -bundle picks the bundle, -remove yanks stuff out, and then any leftover options get passed through. no cap 🧚


πŸ’œ DESCRIPTION πŸ’œ

fr fr, here's the tea: this plugin bundle wraps and modifies another plugin bundle. That's the whole bit. It's giving "middle manager but make it fashion."

It extends @Filter and additionally consumes Dist::Zilla::Role::PluginBundle::Config::Slicer so that any plugin options will be passed in. πŸŽ€

And the reason that matters?? so you can override the plugin configuration for any bundle that doesn't consume Dist::Zilla::Role::PluginBundle::Config::Slicer as if it did! πŸ’€βœ¨

That's it. That's the magic trick. Bestie gets a bundle that wasn't built for slicing, and this thing slices it anyway. ate and left no crumbs πŸ“


🌈 SEE ALSO 🌈

  • Dist::Zilla::PluginBundle::Filter πŸ¦‹
  • Dist::Zilla::Role::PluginBundle::Config::Slicer πŸ’–

πŸ‘‘ AUTHOR πŸ‘‘

Randy Stauner <rwstauner@cpan.org> β€” ty for your service, king 🫑


This software is copyright (c) 2011 by Randy Stauner.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. πŸ“œ (free software stays free, periodt)


and that's the whole page, bestie πŸ’œ this lil doc was living under perl v5.34.0 and it's dated 2022-06-13 β€” shoutout to the User Contributed Perl Documentation crew, mwah πŸ˜­πŸ’– bye bye now, go slice some configs πŸŽ€

πŸ“¦ where this page comes from