@@ -72,7 +72,7 @@ class Generator: |
| 72 | 72 | |
| 73 | 73 | f.write(line) |
| 74 | 74 | |
| 75 | | - def generate_all(self, config: Config, interactive: bool = False) -> None: |
| 75 | + def generate_all(self, config: Config, interactive: bool = True) -> None: |
| 76 | 76 | """Generate shell files for all groups in config""" |
| 77 | 77 | if not config.groups: |
| 78 | 78 | print("No groups found in configuration") |
@@ -143,7 +143,7 @@ class Generator: |
| 143 | 143 | f.write("# No active groups\n") |
| 144 | 144 | |
| 145 | 145 | def _print_usage_instructions( |
| 146 | | - self, config: Config, interactive: bool = False |
| 146 | + self, config: Config, interactive: bool = True |
| 147 | 147 | ) -> None: |
| 148 | 148 | """Print usage instructions for the user""" |
| 149 | 149 | active_groups = config.load_active_groups() |
@@ -233,15 +233,13 @@ class Generator: |
| 233 | 233 | "Enter shell numbers or names (space-separated): " |
| 234 | 234 | ).strip() |
| 235 | 235 | if not user_input: |
| 236 | | - print("No selection made, showing default instructions.") |
| 237 | | - self._print_default_instructions() |
| 236 | + print("No selection made, skipping sourcing instructions.") |
| 238 | 237 | return |
| 239 | 238 | |
| 240 | 239 | selected_shells = self._parse_shell_selection(user_input, shells) |
| 241 | 240 | |
| 242 | 241 | if not selected_shells: |
| 243 | | - print("No valid shells selected, showing default instructions.") |
| 244 | | - self._print_default_instructions() |
| 242 | + print("No valid shells selected, skipping sourcing instructions.") |
| 245 | 243 | return |
| 246 | 244 | |
| 247 | 245 | print("\nAdd these lines to your shell configuration files:") |
@@ -260,8 +258,7 @@ class Generator: |
| 260 | 258 | print("\n" + "=" * 60) |
| 261 | 259 | |
| 262 | 260 | except (KeyboardInterrupt, EOFError): |
| 263 | | - print("\nCancelled. Showing default instructions.") |
| 264 | | - self._print_default_instructions() |
| 261 | + print("\nCancelled. Skipping sourcing instructions.") |
| 265 | 262 | |
| 266 | 263 | def _parse_shell_selection( |
| 267 | 264 | self, user_input: str, available_shells: List[str] |