You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/Console/Commands/BarExportRecipes.php
+28-11Lines changed: 28 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@
8
8
useKami\Cocktail\Models\Bar;
9
9
useIlluminate\Console\Command;
10
10
useKami\Cocktail\Models\Export;
11
+
12
+
usefunctionLaravel\Prompts\spin;
13
+
11
14
useIlluminate\Support\Facades\DB;
12
15
13
16
usefunctionLaravel\Prompts\search;
@@ -24,14 +27,16 @@ class BarExportRecipes extends Command
24
27
*
25
28
* @var string
26
29
*/
27
-
protected$signature = 'bar:export-recipes {barId?} {--t|type=datapack : Export type} {--u|units= : Force unit conversion when possible (none, ml, oz, cl)}';
30
+
protected$signature = 'bar:export-recipes {barId?} {--t|type=datapack : Export type (datapack, schema, md, json-ld, xml, yaml)} {--u|units= : Force unit conversion when possible (none, ml, oz, cl)}';
28
31
29
32
/**
30
33
* The console command description.
31
34
*
32
35
* @var string
33
36
*/
34
-
protected$description = 'Export data from a single bar. Available export types: datapack, schema, markdown, json-ld, xml, yaml';
37
+
protected$description = 'Export data from a single bar';
38
+
39
+
protected$help = 'This command allows you to export data from a single bar in various formats. You can specify the bar ID as an argument, or search for it interactively if not provided.';
0 commit comments