-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Commands to Handle Default Structure Paths (#13)
#### Overview: This pull request refactors the command modules in `generate.py` and `list.py` to handle cases where the `structures_path` argument is not provided, falling back to a default path. #### Changes: - **`generate.py`**: - Removed the default value for `--structures-path` argument. - Added logic to fallback to a default path (`contribs`) if no path is provided. - **`list.py`**: - Modified the list command to handle optional `structures-path`. - Implemented fallback logic to default `contribs` directory when no path is specified. #### Justification: This refactor allows for greater flexibility when using the commands by enabling the user to provide custom paths for structure definitions or rely on the default path if none is supplied. #### Impact: - Improves the robustness of the commands by ensuring default paths are used if the user does not explicitly specify a path. - Simplifies the interface for users running commands without additional configuration.
- Loading branch information
Showing
3 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters