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. │
╰──────────────────────────────────────────────────────────────────────────────╯
/usr/local/lib/python3.8/site-packages/google/protobuf/runtime_version.py:112: UserWarning: Protobuf gencode version 5.27.2 is older than the runtime version 5.28.0 at SiLAFramework.proto. Please avoid checked-in Protobuf gencode that can be obsolete.
warnings.warn(
/usr/local/lib/python3.8/site-packages/google/protobuf/runtime_version.py:112: UserWarning: Protobuf gencode version 5.27.2 is older than the runtime version 5.28.0 at SiLABinaryTransfer.proto. Please avoid checked-in Protobuf gencode that can be obsolete.
warnings.warn(
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.