UR::Na...Browser(3pm)
πΈ UR::Namespace::Command::Sys::ClassBrowser πΈ
okay bestie, welcome to the User Contributed Perl Documentation page for UR::Namespace::Command::Sys::ClassBrowser β yeah that name is a whole mouthful, we're just gonna call it the class browser, iykyk. It's literally a WebApp for browsing the class structure. That's the whole vibe. π
β¨ SYNOPSIS β¨
# Start the web server
ur sys class-browser
# Create the cache file for the current namespace
ur sys class-browser --generate-cache
π DESCRIPTION π
so the class-browser command spins up an embedded web server that's holding a lil app for browsing through your class structure. once it's up and running, it prints a URL on STDOUT that you can just copy-and-paste straight into a browser to run the app. that's it, that's the magic. β¨π¦
π COMMAND-LINE OPTIONS π
With no options at all, the command expects to be run within a Namespace directory. It'll auto-discover every single class in the Namespace β either from a cache file somebody already made, or by scanning all the perl modules inside the Namespace's subdirectory. It's giving resourceful. π
--generate-cacheβ instead of starting a web server, the command scans for all perl modules within the Namespace's subdirectory and creates a file called.<namespace>-class-browser-cache, then exits. That file holds info about all the classes it found, which makes start-up way faster the next time you run the command. lowkey the glow-up. β‘--port<port> β change the TCP port the web server listens on. The default is8080. π--nouse-cacheβ the command will use the cache file generated by the--generate-cacheoption if it finds one. But when--nouse-cacheis used, it will always scan for perl modules and will ignore any cache that may be present. no shortcuts, we do it live. π--verboseβ causes the command to print the STDOUT the URLs loaded while it is running. chatty queen. π£οΈβ¨
π«Ά SEE ALSO π«Ά
URUR::Object::TypeUR::Service::WebServer
ngl, if you're in a Namespace directory and you just want to see your classes, run the thing, grab the URL, and go. main character energy only. π
mwah π that's the whole page, bestie β brought to you by perl v5.32.1, dated 2022-01-17, from the good people who wrote UR::Na...Browser(3pm). periodt. ππΈ
π¦ where this page comes from
- debian bookworm: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms