WIKI-TO...ME-NODE(1p)

✨ WIKI-TOOLKIT-RENAME-NODE β€” the glow-up your node deserves πŸ’…

ok bestie so you've got a node in a Wiki::Toolkit instance and it's got a name that is not serving. This is wiki-toolkit-rename-node, and it's from the User Contributed Perl Documentation section (1p, so it's a Perl thing, obviously πŸͺ). It renames that node for you. Main character energy, zero drama.


πŸ¦‹ SYNOPSIS

# Rename a node in a Wiki::Toolkit instance, updating internal links
#  and references if the formatter supports link re-writing.

wiki-toolkit-rename-node --type postgres
         --name mywiki \
         --user wiki  \
         --pass wiki \
         --host 'db.example.com' \
         --port 1234
         --oldname MyOldNodeName \
         --nemname FancyNewNodeName
ngl the --nemname up there is literally how it's written in the original, and yes, I'm as shook as you are πŸ™ˆ Copy the code exactly as it appears, bestie. That's the rule.

🌸 DESCRIPTION

So here's the tea. This whole thing runs on eight arguments total: four mandatory ones that you literally cannot skip, and four optional ones that are there if you need them. Let's get into it.

πŸŽ€ The four mandatory arguments (no skipping, periodt)

  • type β€” the database type, bestie. It should be one of 'postgres', 'mysql' or 'sqlite'. Pick your fighter. ✨
  • name β€” the database name. Just the name. That's it. πŸ’–
  • oldname β€” the name of the node that's about to get its glow-up. The before picture. πŸ₯²
  • newname β€” the new name for the node. The after picture. The serve. πŸ‘‘

πŸ’… The four optional arguments (there if you want them)

  • user β€” the user that connects to the database. Lowkey important: it must have permission to create and drop tables in the database. So like, don't come at it with a read-only little guy and then act surprised. 🫢
  • pass β€” the user's database password. Shhh. 🀫
  • host β€” the hostname of the machine the database server is running on. Omit it for local databases, because local is cozy. 🏠
  • port β€” the port number that the database server is expecting connections to. The door number. The vibe checkpoint. πŸšͺ

πŸ‘‘ AUTHOR

Nick Burch. Iconic. πŸ’œ


     Copyright (C) 2006 Nick Burch.  All Rights Reserved.

This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Free as in, go off, do your thing, just respect the terms. πŸ•ŠοΈ


🌈 SEE ALSO

  • Wiki::Toolkit β€” the whole universe this little script lives in. Go read it, iykyk. πŸ’«

ok that's the whole page bestie, you're officially caught up πŸ’–

This was pulled from perl v5.32.0, dated 2021-01-04, and it's the User Contributed Perl Documentation version of WIKI-TO...ME-NODE(1p) β€” mwah, go rename something gorgeous πŸŽ€βœ¨

πŸ“¦ where this page comes from