sila2-codegen add-features: Add SiLA features to existing package

Use this command to add new SiLA features to an existing SiLA application, generated by sila2-codegen new-package: Generate new SiLA 2 Server/Client package.

                                                                                
 Usage: sila2-codegen add-features [OPTIONS] [FEATURE_DEFINITIONS]...           
                                                                                
 Add features to previously generated package                                   
                                                                                
╭─ 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 generated/ directory and add a ..._impl.py file to the feature_implementations/ directory.

Warning

It will NOT add any code to server.py, so you have to add the feature implementation to the server manually.