Comments (5)
/dev/stdin
is a great workaround, but it doesn't work on Windows, and it should probably be easier, so I'm going to reopen this.
#1933 is currently open to implement this.
from just.
It is possible:
$ echo 'foo:
> echo foo
>
> bar:
> echo bar' | just -f /dev/stdin
echo foo
foo
But note that this method uses /dev
as working directory:
$ echo 'a:
> pwd' | just -f /dev/stdin
pwd
/dev
There is #1933 for adding proper support
from just.
@laniakea64 I thought about this. Unfortunately, I really do not like the idea of having the folder switched to /dev
when using /dev/stdin
as a Justfile...
For now, I worked around it with a temporary file. But I also do not like it at all.
from just.
I really do not like the idea of having the folder switched to
/dev
when using/dev/stdin
as a Justfile...
Yeah, me neither. Although there is also this option as a workaround:
$ echo 'a:
> pwd' | just -d . -f /dev/stdin
from just.
I really do not like the idea of having the folder switched to
/dev
when using/dev/stdin
as a Justfile...Yeah, me neither. Although there is also this option as a workaround:
$ echo 'a: > pwd' | just -d . -f /dev/stdin
Pretty cool.
from just.
Related Issues (20)
- Command line flag to exit without error if recipe not found HOT 1
- Add missing or (if it's there) improve module information in documentation HOT 1
- Mark recipes as exportable/non-exportable HOT 1
- Warning when compiling with Rust 1.80 HOT 1
- Order of operations for [confirm()] attribute unexpected and not useful for dry-run workflows HOT 3
- Allow expressions in `[confirm: …]` attribute HOT 1
- Set minimal required `just` version for a justfile HOT 4
- [Feature Request] An option to disable change directory for all recipes in justfile HOT 3
- bug: `path_exists()` does not respect `set working-directory` HOT 2
- `set working-directory` should create that dir if missing HOT 3
- Improve error message if `working-directory` does not exist HOT 3
- Allow defining private variables HOT 4
- Incorrect Circular dependency HOT 1
- failed to select a version for `env_logger` which could resolve this conflict HOT 4
- Run in existing shell OR create interactive child shell HOT 5
- Trouble loading .env file from path HOT 1
- feature request: idempotentcy guards HOT 10
- Allow const expressions in settings
- Bug: Incorrect run just command in just file HOT 2
- [feature request] Installation via pip? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from just.