sila2-codegen update
: Update existing package¶
Use this command to update the auto-generated Python code in an existing package, e.g. after you changed a feature definition, or after an SDK update.
Usage: sila2-codegen update [OPTIONS] [FEATURE_DEFINITIONS]...
Update a previously generated package after modifications to the feature
definitions (refreshes the 'generated' submodule)
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ feature_definitions [FEATURE_DEFINITIONS].. SiLA 2 feature │
│ . definition files │
│ (*.sila.xml) │
│ [default: None] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --package-directory -d TEXT Package directory [default: .] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
Note
This will update the existing generated/
directory and add a file updated_..._impl.py
to the feature_implementations/
directory.
It is intended to help you with migrating your old feature implementation to the updated feature.