AUTODIA(1p)
π AUTODIA(1p) π
welcome to AUTODIA(1p), bestie β straight outta the User Contributed Perl Documentation section, and yes she is that girl. β¨
πΈ NAME πΈ
autodia β a perl script using the Autodia modules to create UML Class Diagrams or documents. from code or other data sources. π
(yeah the original sentence does that lil period-then-lowercase thing, we leave it, it's part of her charm π«Ά)
π¦ INTRODUCTION π¦
okay so here's the whole vibe, no cap. AutoDia takes source files as input and using a handler parses them to create documentation through templates. the handlers are the whole point β they allow AutoDia to parse any language by providing a handler and registering in autodia.pm. and the templates? templates allow the output to be heavily customised, from Dia XML to simple HTML, and they separate the logic of the application from the presentation of the results. it's giving architecture. it's giving separation of concerns. π
AutoDia is written in perl and defaults to the perl handler and file extension matching unless a language is specified using the -l switch. so like, if you don't say anything, she assumes perl. she's not being presumptuous, she's just β¨efficientβ¨.
AutoDia requires Template Toolkit and Perl 5. some handlers and templates may require additional software, for example the Java SDK for the java handler. so check your deps before you come for her, okay? π
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. literally so many formats. she contains multitudes. π
helpful information, links and news can be found at the autodia website β http://www.aarontrevena.co.uk/opensource/autodia/ β go be nosy, it's free π
π USAGE π
here's the runbook, bestie. reading it verbatim, because these are commands and we do not freestyle commands:
"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" =item "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"
c<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"
yes there's a stray=itemand a strayc<...>in there. that's canon. we don't edit the source material, we just love her as she is π
and now the same tea, but decanted into cute lil sips so your brain can hold it π
autodia ([-i filename [-p path] ] or [-d directory [-r] ]) [options]β the general shape of the whole thing, the blueprint, the skeleton key.-ifilename β use filename as input.-i 'filea fileb filec'β usefilea,filebandfilecas input.-ifilename-p..β use../filenameas input file.-ddirectoryname β use*.pl/pmin directoryname as input files.-d 'foo bar quz'β use*pl/pmin directoriesfoo,barandquzas input files.-ddirectory-rβ use*pl/pmin directory and its subdirectories as input files.-ddirectory-Fβ use files in directory but only one file per diagram.autodia.pl -ddirectory-Cβ use files in directory but skip CVS directories.-ooutfile.xml β useoutfile.xmlas output file (otherwise usesautodial.out.dia).-Oβ output to stdout.-llanguage β parse source as language (ie:C) and look for appropriate filename extensions if also-d.-ttemplatefile β use templatefile as template (otherwise usestemplate.xml).-l DBI -i "mysql:test:localhost" -Uusername-Ppassword β usetestdatabase onlocalhostwith username and password as username and password.-l Mason -i "/index.html" -pcomp_root-G '\$c'β useHTML::Masonto fetch/index.htmlfrom comp_root and show all components in reach.-Gcorresponds toallow_globals.-zβ output via graphviz.-Zβ output via springgraph.-vβ output via VCG.-sskipfile β exclude files or packagenames matching those listed in file.-Dβ ignore dependencies (ie do not process or display dependencies).-Kβ do not display packages that are not part of input.-kβ do not display superclasses that are not part of input.-Hβ show only Public/Visible methods.-mβ show only Class methods.-Mβ do not show Class Methods.-aβ show only Class Attributes.-Aβ do not show Class Attributes.-Sβ silent mode, no output to stdout except with-O.-hβ display this help message.-Vβ display version and copyright message.
real talk though:-Sis silent mode, so no output to stdout β except with-O. that's not a suggestion, that's the rule. π€«
and that's the page, bestie!! this one's brought to you by perl v5.36.0, dated 2022-11-02 β she's been here a minute and she's still slaying. go make some UML class diagrams, you've got this π«Άπβ¨
π¦ where this page comes from
- debian bookworm: autodia 2.14-5 Β· GPL-2.0-only
- debian trixie: autodia 2.14-5 Β· GPL-2.0-only
- ubuntu noble: autodia 2.14-5 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms