scitools.com

← All und commands

und is the command-line interface to Understand — script project creation, analysis, CodeCheck, metrics, and reports, locally or in CI.

und arch

manage automatic architectures

Automatic architectures organize project entities into hierarchical groups. This command lists and generates them for a project.

Options

OptionDescription
-listList all architectures with active/available status (default)
-generate <name>Add and generate an automatic architecture for the project
-name <name>Name the generated instance (with -generate) instead of using the architecture's default name
-options <name=value;...>Set architecture options (with -generate) as semicolon-separated name=value pairs, using the same option names shown in the GUI. An invalid name lists the architecture's available options.

Built-in architecture names

OptionDescription
Directory StructureOrganizes files by directory structure
CalendarOrganizes files by modification date
LanguageOrganizes files by programming language
Visual StudioOrganizes files by Visual Studio project

When a database is specified, plugin architectures defined by .upy scripts are also included in the list.

To remove an architecture from a project, use the remove command:

und remove -arch <name> mydb.und

Example usage

und arch -list mydb.und
und arch -generate Language mydb.und
und arch -generate "Visual Studio" mydb.und
und arch -generate "Git Stability" -name "Code Churn" mydb.und
und arch -generate "Git Stability" -options "Date Relative to=Most Recent Commit" mydb.und
und remove -arch Language mydb.und