@@ -17,7 +17,7 @@ class GenerationSettings: |
| 17 | """Settings for file generation""" | 17 | """Settings for file generation""" |
| 18 | | 18 | |
| 19 | shells: List[str] = field(default_factory=list) # Empty = auto-detect | 19 | shells: List[str] = field(default_factory=list) # Empty = auto-detect |
| 20 | - parallel: bool = False # Threading not implemented yet | 20 | + parallel: bool = False # Enable parallel generation |
| 21 | consolidate_files: bool = True | 21 | consolidate_files: bool = True |
| 22 | | 22 | |
| 23 | | 23 | |
@@ -31,15 +31,6 @@ class BehaviorSettings: |
| 31 | interactive_mode: bool = True | 31 | interactive_mode: bool = True |
| 32 | | 32 | |
| 33 | | 33 | |
| 34 | -@dataclass | | |
| 35 | -class PerformanceSettings: | | |
| 36 | - """Settings for performance optimization""" | | |
| 37 | - | | |
| 38 | - cache_ttl: int = 300 # 5 minutes | | |
| 39 | - lazy_load: bool = False # Not implemented yet | | |
| 40 | - batch_operations: bool = True | | |
| 41 | - | | |
| 42 | - | | |
| 43 | class Settings: | 34 | class Settings: |
| 44 | """Manages shtick settings and preferences""" | 35 | """Manages shtick settings and preferences""" |
| 45 | | 36 | |
@@ -56,7 +47,6 @@ class Settings: |
| 56 | if not self._loaded: | 47 | if not self._loaded: |
| 57 | self.generation = GenerationSettings() | 48 | self.generation = GenerationSettings() |
| 58 | self.behavior = BehaviorSettings() | 49 | self.behavior = BehaviorSettings() |
| 59 | - self.performance = PerformanceSettings() | | |
| 60 | self._settings_path = self.get_settings_path() | 50 | self._settings_path = self.get_settings_path() |
| 61 | self._load() | 51 | self._load() |
| 62 | Settings._loaded = True | 52 | Settings._loaded = True |
@@ -96,15 +86,6 @@ class Settings: |
| 96 | self.behavior.backup_on_save = beh_data.get("backup_on_save", False) | 86 | self.behavior.backup_on_save = beh_data.get("backup_on_save", False) |
| 97 | self.behavior.interactive_mode = beh_data.get("interactive_mode", True) | 87 | self.behavior.interactive_mode = beh_data.get("interactive_mode", True) |
| 98 | | 88 | |
| 99 | - # Load performance settings | | |
| 100 | - if "performance" in data: | | |
| 101 | - perf_data = data["performance"] | | |
| 102 | - self.performance.cache_ttl = perf_data.get("cache_ttl", 300) | | |
| 103 | - self.performance.lazy_load = perf_data.get("lazy_load", False) | | |
| 104 | - self.performance.batch_operations = perf_data.get( | | |
| 105 | - "batch_operations", True | | |
| 106 | - ) | | |
| 107 | - | | |
| 108 | logger.debug("Settings loaded successfully") | 89 | logger.debug("Settings loaded successfully") |
| 109 | | 90 | |
| 110 | except Exception as e: | 91 | except Exception as e: |
@@ -128,11 +109,6 @@ class Settings: |
| 128 | "backup_on_save": self.behavior.backup_on_save, | 109 | "backup_on_save": self.behavior.backup_on_save, |
| 129 | "interactive_mode": self.behavior.interactive_mode, | 110 | "interactive_mode": self.behavior.interactive_mode, |
| 130 | }, | 111 | }, |
| 131 | - "performance": { | | |
| 132 | - "cache_ttl": self.performance.cache_ttl, | | |
| 133 | - "lazy_load": self.performance.lazy_load, | | |
| 134 | - "batch_operations": self.performance.batch_operations, | | |
| 135 | - }, | | |
| 136 | } | 112 | } |
| 137 | | 113 | |
| 138 | # Write TOML file | 114 | # Write TOML file |
@@ -164,7 +140,7 @@ class Settings: |
| 164 | [generation] | 140 | [generation] |
| 165 | # Shells to generate files for. Empty list = auto-detect based on current shell | 141 | # Shells to generate files for. Empty list = auto-detect based on current shell |
| 166 | shells = [] | 142 | shells = [] |
| 167 | -# Enable parallel generation (not implemented yet) | 143 | +# Enable parallel generation for faster processing with many shells |
| 168 | parallel = false | 144 | parallel = false |
| 169 | # Consolidate all items into single files per shell | 145 | # Consolidate all items into single files per shell |
| 170 | consolidate_files = true | 146 | consolidate_files = true |
@@ -178,14 +154,6 @@ check_conflicts = true |
| 178 | backup_on_save = false | 154 | backup_on_save = false |
| 179 | # Enable interactive prompts | 155 | # Enable interactive prompts |
| 180 | interactive_mode = true | 156 | interactive_mode = true |
| 181 | - | | |
| 182 | -[performance] | | |
| 183 | -# Cache time-to-live in seconds | | |
| 184 | -cache_ttl = 300 | | |
| 185 | -# Enable lazy loading (not implemented yet) | | |
| 186 | -lazy_load = false | | |
| 187 | -# Enable batch operations for better performance | | |
| 188 | -batch_operations = true | | |
| 189 | """ | 157 | """ |
| 190 | | 158 | |
| 191 | with open(self._settings_path, "w") as f: | 159 | with open(self._settings_path, "w") as f: |