autodia(3pm)

πŸ“¦
version 2.14 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble

✨ autodia(3pm) β€” the manual, but make it a group chat ✨

okay bestie, gather round, because we're talking about autodia πŸ’… and honestly? it's giving main character energy. it's a perl script that uses the Autodia modules to create UML Class Diagrams or documents. from code or other data sources. periodt. πŸŽ€

(this is the autodia(3pm) page from User Contributed Perl Documentation, btw, iykyk)


🌸 INTRODUCTION 🌸

AutoDia takes source files as input and, using a handler, parses them to create documentation through templates. no cap. πŸ¦‹

The handlers are the way AutoDia can parse any language β€” you just provide a handler and register it in autodia.pm. The templates let the output be heavily customised, from Dia XML all the way down to simple HTML, and they separate the logic of the application from the presentation of the results. the way that it just… separates concerns?? obsessed. ✨

AutoDia is written in perl and defaults to the perl handler and file extension matching, unless you specify a language with the -l switch. fr fr.

AutoDia requires Template Toolkit and Perl 5. some handlers and templates may require additional software β€” for example, the Java SDK for the java handler. πŸ’€ yes really.

AutoDia can use GraphViz to generate layout coordinates, and can produce di-graphs (that's notation for directional graphs, bestie) in dot (plain or canonical) and vcg, as well as Dia xml. iconic honestly. πŸ‘‘

Helpful information, links and news can be found at the autodia website:

http://www.aarontrevena.co.uk/opensource/autodia/


πŸ’– USAGE πŸ’–

here's the whole vibe, all of it, no skipping, i would never:

autodia ([-i filename [-p path] ] or [-d directory [-r] ]) [options]
autodia -i filename            : use filename as input
autodia -i 'filea fileb filec' : use filea, fileb and filec as input
autodia -i filename -p ..      : use ../filename as input file
autodia -d directoryname       : use *.pl/pm in directoryname as input files
autodia -d 'foo bar quz'       : use *pl/pm in directories foo, bar and quz as input files
autodia -d directory -r        : use *pl/pm in directory and its subdirectories as input files
autodia -d directory -F        : use files in directory but only one file per diagram
autodia.pl -d directory -C        : use files in directory but skip CVS directories
autodia -o outfile.xml         : use outfile.xml as output file (otherwise uses autodial.out.dia)
autodia -O                     : output to stdout
autodia -l language            : parse source as language (ie: C) and look for appropriate filename extensions if also -d
autodia -t templatefile        : use templatefile as template (otherwise uses template.xml)
autodia -l DBI -i "mysql:test:localhost" -U username -P password : use test database on localhost with username and password as username and password
autodia -l Mason -i "/index.html" -p comp_root -G '$c' : use HTML::Mason to fetch /index.html from comp_root and show all components in reach. -G corresponds to allow_globals.
autodia -z                     : output via graphviz
autodia -Z                     : output via springgraph
autodia -v                     : output via VCG
autodia -s skipfile            : exclude files or packagenames matching those listed in file
autodia -D                     : ignore dependencies (ie do not process or display dependencies)
autodia -K                     : do not display packages that are not part of input
autodia -k                     : do not display superclasses that are not part of input
autodia -H                     : show only Public/Visible methods
autodia -m                     : show only Class methods
autodia -M                     : do not show Class Methods
autodia -a                     : show only Class Attributes
autodia -A                     : do not show Class Attributes
autodia -S                     : silent mode, no output to stdout except with -O
autodia -h                     : display this help message
autodia -V                     : display version and copyright message
πŸ’… note from me to you: -S is silent mode, so no output to stdout β€” except when you're also using -O. sneaky little combo, love that for it.

that's the whole page, bestie!! every flag, every line, all of it, nothing left out, we ate and left no crumbs. πŸ“πŸ§š

this masterpiece was documented for perl v5.36.0, dated 2022-11-02 β€” stay slay, go diagram some code, mwah πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from