AUTODIA(1)

πŸ“¦ version 2.14, in nixos 26.05, nixpkgs unstable

πŸŽ€ 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 ../filename as the input file.
  • autodia.pl -d directoryname β€” use *.pl/pm in directoryname as input files.
  • autodia.pl -d 'foo bar quz' β€” use *pl/pm in the directories foo, bar and quz as input files.
  • autodia.pl -d directory -r β€” use *pl/pm in 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 =item wedged between the -F and -C lines β€” not me inventing a flag, just preserving the chaos πŸ’€
  • autodia.pl -o outfile.xml β€” use outfile.xml as the output file (otherwise it uses autodial.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 uses template.xml).
  • autodia.pl -l DBI -i "mysql:test:localhost" -U username -P password β€” use the test database on localhost with username and password as the username and password.
  • autodia.pl -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.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