zheoni / cooklang-chef Goto Github PK
View Code? Open in Web Editor NEWA CLI to manage cooklang recipes
License: MIT License
A CLI to manage cooklang recipes
License: MIT License
Is there a possibility to show timer units in a non-English language? If yes, which syntax has to be used?
(Using timer name still shows "minutes" in English.)
I'm posting this as this project is reported as a dependent of concolor
and wanted to both give you a heads up to prepare and an opportunity to discuss in case we should re-evaluate this.
We are proposing deprecating concolor
in favor of either
anstream
colorchoice
, colorchoice-clap
, and your choice of environment detection crates including anstyle-query
and supports-color
.We welcome feedback on this topic at rust-cli/concolor#47
Testing with an example file:
>> time: 3
>> description: Cook water (ingredients list)
>> [define]: ingredients
- @water{1%l}
- @more water{2%l}
- @even more water{2%l}
>> [define]: steps
Put water into a cooker
Press the button
Wait till it boils
Getting:
chef recipe test/water-def.cook ✔
water-def
│ Cook water (ingredients list)
time: 3m
Ingredients:
water 1 l
more water 2 l
even more water 2 l
Steps:
4. Put water into a cooker
[-]
5. Press the button
[-]
6. Wait till it boils
[-]
Concerns both WebUI and CLI versions.
Would be especially helpful for clearing tags.
Maybe it would be nice to enhance the search field even further (like adding filters as UI elements etc.), but this would be a separate request.
Hello!
With Version 0.8.3-1 i get the following error when running chef list
:
Error: Error loading default global config file
Caused by:
0: Bad TOML data
1: TOML parse error at line 6, column 1
|
6 | [extensions]
| ^^^^^^^^^^^^
Unknown extension name
I deleted [extensions]
in the configuration file and the list command was functional again.
But when i try chef serve
I get the following error and the server wont start:
2024-02-09T22:11:50.984197Z WARN Config dir `.cooklang` found not in base path. It will be ignored. You may be running the application in the wrong directory.
thread 'main' panicked at /home/jannisf/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cooklang-0.13.0/src/parser/block_parser.rs:67:9:
assertion `left == right` failed: Block tokens not parsed. this is a bug
left: 1
right: 3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'tokio-runtime-worker' panicked at src/serve/async_index.rs:167:14:
called `Result::unwrap()` on an `Err` value: Error { kind: Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" }), paths: ["/home/jannisf/.local/share/Trash/files/home/jannisf/.wine/dosdevices/z:/var/cache/ldconfig"] }
Thank you very much!
thanks so much for putting this together :)
i see you decided to have a syntax to support re-referencing ingedients (awesome!) it would be great if this could be extended to items as well, such as:
Prepare a #mixing bowl{} ...
... put veggies in the #&mixing bowl{}.
thoughts?
When chef
is run outside a collection, a warning should be shown.
The chef serve
and chef list
subcommands shouldn't be allowed outside a collection. Maybe add a flag to force it.
it'd be extremely convenient if there were checkboxes to tick next to steps so that, while cooking, you could mark things off! 😅
All other keys work, but "s" just doesn't show if inputted (probably has to do with it being a hotkey for focusing at the search field).
Hello!
I really like your project! But as I can't code in a way that helps you, I was thinking if I maybe can help with german translation.
Is this a realistic thought?
Thank you very much!
Debian Sid, cooklang-chef 0.8.3
A somewhat recent change made it so you can't use the full path to view a recipe. Using chef recipe works, but chef recipe does not. It produced Error: Recipe not found.
Seems currently only time
, source
, author
and description
are supported. Specification seems not to limit this, according to examples. Would be nice to have arbitrary metadata keys (especially useful for languages other than English).
the ui you've made is really lovely; super functional and great.
it would be a dream if it was possible to have a little feature to build a shopping-list from the website
i could imagine it working a bit like a typical shopping-cart; you pick the recipes you want to build the list for, and then you get to see the aggregated items to buy.
thoughts?
Hi there. I love the project, but I would like to interact with a few components as a library so that I can create a more automated experience.
Specifically, what I'm trying to do is get access to the combined ingredients given a list of recipes so that I can programmatically update my grocery list.
It doesn't seem like this is directly possible, but I am somewhat new to Rust, so I might be missing something. If it is not possible, I'm happy to tackle abstracting this as a PR if that's inline with what you have in mind for the future of the project.
It may be more commonly expected behavior that on search with empty string
With current behavior, if it happens accidentally, the user may be bewildered or misinterpreting why no recipes are shown (e.g. assuming a bug).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.