@@ -26,7 +26,7 @@ class ConfigCommand extends Command
2626 *
2727 * @var string
2828 */
29- protected $ description = 'Configure which folder types cnkill scans. ' ;
29+ protected $ description = 'Configure which targets cnkill scans. ' ;
3030
3131 public function handle (ConfigService $ config ): int
3232 {
@@ -59,7 +59,7 @@ private function printHeader(): void
5959 $ this ->line ('<fg=blue> ' . $ line . '</> ' );
6060 }
6161
62- $ this ->line (' <fg=gray>Configure which folder types cnkill scans.</> ' );
62+ $ this ->line (' <fg=gray>Configure which targets cnkill scans.</> ' );
6363 $ this ->line (' <fg=yellow> ' . app ()->version () . '</> ' );
6464 $ this ->newLine ();
6565 }
@@ -86,12 +86,12 @@ private function handleList(ConfigService $config): int
8686 }
8787
8888 $ this ->newLine ();
89- $ this ->line (' <options=bold>cnkill config</> — select which folder types to scan. ' );
90- $ this ->line (' <fg=gray>Use <space> to toggle, <enter> to save, <q> to quit. Run `cnkill config add` to add custom types .</> ' );
89+ $ this ->line (' <options=bold>cnkill config</> — select which targets to scan. ' );
90+ $ this ->line (' <fg=gray>Use <space> to toggle, <enter> to save, <q> to quit. Run `cnkill config add` to add custom targets .</> ' );
9191 $ this ->newLine ();
9292
9393 $ prompt = new MultiSelectPrompt (
94- label: 'Enabled folder types ' ,
94+ label: 'Enabled targets ' ,
9595 options: $ options ,
9696 default: $ currentlyEnabled ,
9797 scroll: min (count ($ options ), 20 ),
@@ -120,13 +120,13 @@ private function handleList(ConfigService $config): int
120120 }
121121
122122 $ count = count ($ selected );
123- $ dirWord = $ count === 1 ? 'type ' : 'types ' ;
124- $ this ->line (" <fg=green;options=bold>Saved.</> {$ count } folder {$ dirWord } enabled. " );
123+ $ dirWord = $ count === 1 ? 'target ' : 'targets ' ;
124+ $ this ->line (" <fg=green;options=bold>Saved.</> {$ count } {$ dirWord } enabled. " );
125125 $ this ->line (' <fg=gray>Config stored at: ' . $ config ->configPath () . '</> ' );
126126 $ this ->newLine ();
127127
128128 if ($ count === 0 ) {
129- $ this ->line (' <fg=yellow>Warning: no folder types enabled — cnkill will not find anything.</> ' );
129+ $ this ->line (' <fg=yellow>Warning: no targets enabled — cnkill will not find anything.</> ' );
130130 $ this ->newLine ();
131131 }
132132
@@ -141,7 +141,7 @@ private function handleAdd(ConfigService $config): int
141141 {
142142
143143 $ this ->newLine ();
144- $ this ->line (' <options=bold>cnkill config add</> — define a custom folder type to scan. ' );
144+ $ this ->line (' <options=bold>cnkill config add</> — define a custom target to scan. ' );
145145 $ this ->line (' <fg=gray>Press <q> or Ctrl-C at any time to cancel.</> ' );
146146 $ this ->newLine ();
147147
@@ -232,7 +232,7 @@ private function handleAdd(ConfigService $config): int
232232 $ this ->line (sprintf (' Lockfiles: <fg=gray>%s</> ' , $ lockfiles ? implode (', ' , $ lockfiles ) : 'none ' ));
233233 $ this ->newLine ();
234234
235- $ confirmPrompt = new ConfirmPrompt (label: 'Save this custom type ? ' , default: true );
235+ $ confirmPrompt = new ConfirmPrompt (label: 'Save this custom target ? ' , default: true );
236236 $ confirmPrompt ->on ('key ' , fn (string $ k ) => $ k === 'q ' ? exit (0 ) : null );
237237 $ confirmed = $ confirmPrompt ->prompt ();
238238
@@ -261,7 +261,7 @@ private function handleAdd(ConfigService $config): int
261261 return 1 ;
262262 }
263263
264- $ this ->line (" <fg=green;options=bold>Saved.</> Custom type <fg=cyan> {$ folderInput }</> added and enabled. " );
264+ $ this ->line (" <fg=green;options=bold>Saved.</> Custom target <fg=cyan> {$ folderInput }</> added and enabled. " );
265265 $ this ->line (' <fg=gray>Config stored at: ' . $ config ->configPath () . '</> ' );
266266 $ this ->newLine ();
267267
@@ -279,13 +279,13 @@ private function handleRemove(ConfigService $config): int
279279 $ this ->newLine ();
280280
281281 if (empty ($ customTypes )) {
282- $ this ->line (' <fg=yellow>No custom types defined yet. Run `cnkill config add` to add one.</> ' );
282+ $ this ->line (' <fg=yellow>No custom targets defined yet. Run `cnkill config add` to add one.</> ' );
283283 $ this ->newLine ();
284284
285285 return 0 ;
286286 }
287287
288- $ this ->line (' <options=bold>cnkill config remove</> — delete a custom folder type . ' );
288+ $ this ->line (' <options=bold>cnkill config remove</> — delete a custom target . ' );
289289 $ this ->newLine ();
290290
291291 $ options = [];
@@ -294,7 +294,7 @@ private function handleRemove(ConfigService $config): int
294294 }
295295
296296 $ selectPrompt = new SelectPrompt (
297- label: 'Which custom type do you want to remove? ' ,
297+ label: 'Which custom target do you want to remove? ' ,
298298 options: $ options ,
299299 scroll: min (count ($ options ), 15 ),
300300 );
@@ -325,7 +325,7 @@ private function handleRemove(ConfigService $config): int
325325 $ this ->newLine ();
326326
327327 if (! $ removed ) {
328- $ this ->line (' <fg=red>Failed to remove type or write config.</> ' );
328+ $ this ->line (' <fg=red>Failed to remove target or write config.</> ' );
329329 $ this ->newLine ();
330330
331331 return 1 ;
0 commit comments