Module origen::core::application::target[][src]

Expand description

A default target/env for an application can be set by config/application.toml, this can then be overridden by the user by setting a temporary workspace default via the “origen t” and “origen e” commands. These commands store the user’s selections in .origen/application.toml and this file should NOT be checked into revision control.

The target can be further overridden for a particular origen command invocation via the -t and -e options, or programmatically within the application code, however that is all handled on the front end in Python code.

Functions

Enables additional targets in the workspace

Returns all files from the given directory

Sanitizes the given target/env name and returns it, but will exit the process if it does not uniquely identify a single target/env file. Set the last arg to true to return the path to the matching target instead.

Deletes the given key (and its val) from .origen/application.toml if it exists

Gets the currently enabled targets

Returns an array of possible target/environment files that match the given name/snippet

Disables currently enables targets in the workspace

Resets (deletes) the target back to its default value

Sets the targets, overriding any that may be present

Sets the given key and value (currently only a string is supported) in .origen/application.toml

Sets an Array-of-Strings workspace variable