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: docs/README.md
+47-6Lines changed: 47 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,3 @@
1
-
# CookCLI Documentation
2
-
3
1
The Cook CLI command line program provides a suite of tools to create shopping lists, maintain recipes, and manage your cooking workflow. We've built it to be simple and useful for automating your cooking and shopping routine with existing UNIX command line and scripting tools.
4
2
5
3
## Available Commands
@@ -27,6 +25,44 @@ cd cookcli
27
25
cargo build --release
28
26
```
29
27
28
+
## Global Options
29
+
30
+
CookCLI supports several global options that apply to all commands:
31
+
32
+
### Base Path
33
+
Specify the directory containing your recipes (defaults to current directory):
34
+
35
+
```bash
36
+
# Use recipes from a specific directory
37
+
cook --base-path ~/my-recipes recipe "Pizza.cook"
38
+
39
+
# Short form
40
+
cook -b ~/my-recipes shopping-list "Pasta.cook"
41
+
```
42
+
43
+
### Logging Verbosity
44
+
Control the amount of debug information displayed:
45
+
46
+
```bash
47
+
# Normal output (default)
48
+
cook recipe "Pizza.cook"
49
+
50
+
# Info level logging (-v)
51
+
cook -v recipe "Pizza.cook"
52
+
53
+
# Debug level logging (-vv)
54
+
cook -vv shopping-list "Pasta.cook"
55
+
56
+
# Trace level logging (-vvv) - most verbose
57
+
cook -vvv doctor validate
58
+
```
59
+
60
+
The logging levels are:
61
+
* No flag: Normal output only
62
+
*`-v`: Info messages
63
+
*`-vv`: Debug messages (helpful for troubleshooting)
64
+
*`-vvv`: Trace messages (detailed parsing and processing information)
Copy file name to clipboardExpand all lines: docs/import.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ The `import` command fetches recipes from websites and automatically converts th
4
4
5
5
Requires `OPENAI_API_KEY` environment variable set to perform the conversion to Cooklang. Without the key you still can downlad recipe original content, but it won't be converted to Cooklang.
6
6
7
+
Note that you can use [cook.md converter](https://cooklang.org/docs/getting-started#build-your-recipe-collection) if you don't have OpenAI key.
0 commit comments