App::D...Update(3pm)
π App::DocKnot::Update β the glow-up page π
okay bestie, so this is App::DocKnot::Update, straight out of the User Contributed Perl Documentation corner of the universe β¨ it's the little module that handles updating DocKnot input or package configuration, and honestly? it's giving "I fix your old files so you don't have to." iconic behavior, no cap π
β¨ SYNOPSIS β¨
use App::DocKnot::Update;
my $update = App::DocKnot::Update->new(
{
metadata => 'docs/metadata',
output => 'docs/docknot.yaml',
}
);
$update->update();
$update->update_spin('/path/to/spin/input');
like, that's it. that's the whole vibe. you build it, you call it, it does the thing π
π¦ REQUIREMENTS π¦
so before you even breathe in this module's direction, you need Perl 5.24 or later β that's the floor, bestie, not a suggestion β plus these modules, all of which are chilling on CPAN waiting for you:
Git::RepositoryFile::BaseDirFile::ShareDirJSON::MaybeXSPath::Iterator::RulePath::TinyPerl6::SlurpYAML::XS
collect them all like they're stickers in your binder π
π DESCRIPTION π
This component of DocKnot updates package configuration from older versions. periodt. Currently, its main purpose is to convert from the JSON format used prior to DocKnot 4.0 to the current YAML syntax. that's the whole arc β glow-up from JSON to YAML, and she ate π₯
π CLASS METHODS π
new(ARGS)
Create a new App::DocKnot::Update object. This should be used for all subsequent actions β like, do NOT skip this step, it's the main character introduction. ARGS should be a hash reference with one or more of the following keys:
metadataβ The path to the directory containing the legacy JSON metadata for a package. Default:docs/metadatarelative to the current directory.outputβ The path to which to write the new YAML configuration. Default:docs/docknot.yamlrelative to the current directory.
two keys, very demure, very mindful, defaults already handled so you can just vibe π
π§ INSTANCE METHODS π§
update()
Load the legacy JSON metadata and write out the YAML equivalent. in β out. old β new. slay β¨
update_spin([PATH])
Update the input tree for App::DocKnot::Spin to follow current expectations. PATH is the path to the input tree, which defaults to the current directory if not given. so if you're like "bestie I don't know where my tree is," she'll just assume you mean the current directory, we've all been there π
If the input tree is the working tree for a Git repository, any changes are also registered with Git (but not committed). so she stages, she does not commit. she sets the table, she does not eat. you do the commit yourself, king π
π«Ά heads up bestie: not committed fr fr. the changes are registered with Git and that is all. the rest is on you.
πΈ AUTHOR πΈ
Russ Allbery <rra@cpan.org>
π COPYRIGHT AND LICENSE π
Copyright 2013-2022, 2024 Russ Allbery <rra@cpan.org>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
π yes bestie the ALL CAPS part is scary but that's just how licenses yell. it means what it says. read it, it's real.
π SEE ALSO π
docknot(1)App::DocKnot::Config
This module is part of the App-DocKnot distribution. The current version of DocKnot is available from CPAN, or directly from its web site at <https://www.eyrie.org/~eagle/software/docknot/>. go peek, she's cute π«
k bye bestie, this page was perl v5.40.1 flavored and dated 2026-01-16, which is honestly so futuristic of it β¨π stay slaying, and remember: update your configs, hydrate, and never commit someone else's staged changes π«Άπ
π¦ where this page comes from
- ubuntu resolute: docknot 8.0.1-1build1 Β· MIT
- ubuntu stonking: docknot 8.0.1-1build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms