AUTODIA(1)
π NAME π
okay bestie, welcome to the AUTODIA(1) page from the User Contributed Perl Documentation π. This is all about autodia.pl, a perl script using the Autodia modules to create UML Class Diagrams or documents β from code or other data sources. iconic.
β¨ INTRODUCTION β¨
AutoDia takes source files as input and uses a handler to parse them, then creates documentation through templates. The handlers let AutoDia parse any language β you provide a handler and register it in autodia.pm π«Ά. The templates let the output be heavily customised, from Dia XML all the way to simple HTML, and they separate the logic of the application from the presentation of the results. slay.
AutoDia is written in perl and defaults to the perl handler and file extension matching unless a language is specified using the -l switch β¨.
AutoDia requires Template Toolkit and Perl 5. Some handlers and templates may require additional software, for example the Java SDK for the java handler π¦.
AutoDia can use GraphViz to generate layout coordinates, and can produce di-graphs (notation for directional graphs) in dot (plain or canonical) and vcg, as well as Dia xml π.
Helpful information, links and news can be found at the autodia website β http://www.aarontrevena.co.uk/opensource/autodia/ π
π USAGE π
okay so the general shape is:
autodia.pl ([-i filename [-p path] ] or [-d directory [-r] ]) [options]
and here's the whole cheat sheet, bestie β commands preserved exactly, descriptions in my own words:
autodia.pl -i filenameβ use filename as input.autodia.pl -i 'filea fileb filec'β use filea, fileb and filec as input.autodia.pl -i filename -p ..β use../filenameas the input file.autodia.pl -d directorynameβ use*.pl/pmin directoryname as input files.autodia.pl -d 'foo bar quz'β use*pl/pmin the directories foo, bar and quz as input files.autodia.pl -d directory -rβ use*pl/pmin directory and its subdirectories as input files.autodia.pl -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.
tiny heads-up: the original page has an=itemwedged between the-Fand-Clines β not me inventing a flag, just preserving the chaos π
autodia.pl -o outfile.xmlβ useoutfile.xmlas the output file (otherwise it usesautodial.out.dia).autodia.pl -Oβ output to stdout.autodia.pl -l languageβ parse source as language (ie: C) and look for appropriate filename extensions if also using-d.autodia.pl -t templatefileβ use templatefile as the template (otherwise it usestemplate.xml).autodia.pl -l DBI -i "mysql:test:localhost" -U username -P passwordβ use thetestdatabase onlocalhostwithusernameandpasswordas the username and password.autodia.pl -l Mason -i "/index.html" -p comp_root -G '\$c'β useHTML::Masonto fetch/index.htmlfromcomp_rootand show all components in reach.-Gcorresponds toallow_globals.autodia.pl -zβ output via graphviz.autodia.pl -Zβ output via springgraph.autodia.pl -vβ output via VCG.autodia.pl -s skipfileβ exclude files or packagenames matching those listed in file.autodia.pl -Dβ ignore dependancies (ie do not process or display dependancies).autodia.pl -Kβ do not display packages that are not part of input.autodia.pl -kβ do not display superclasses that are not part of input.autodia.pl -Hβ show only Public/Visible methods.autodia.pl -mβ show only Class methods.autodia.pl -Mβ do not show Class Methods.autodia.pl -aβ show only Class Attributes.autodia.pl -Aβ do not show Class Attributes.autodia.pl -Sβ silent mode, no output to stdout except with-O.autodia.pl -hβ display this help message.autodia.pl -Vβ display version and copyright message.
xoxo bestie β source/version perl v5.42.3, date 2011-05-25, manual AUTODIA(1). bye! ππ
β¨
π¦ where this page comes from
- nixos 26.05: perl5.42.3-Autodia 2.14
- nixpkgs unstable: perl5.42.3-Autodia 2.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms