Comments (2)
Hi @stephen-spar, thanks for reporting this issue.
It looks like the square brackets from the argument are getting picked up in the cmd task as glob pattern to be interpreted. I agree that this is surprising, and I'm going to leave this issue open to think about how to improve it.
This is a quirk of the design at the intersection of how cmd tasks implement shell like features (including parameter expansion and glob expansion) and how they interpolate CLI arguments as env vars.
I think you can get around this by quoting the parameter expansion in your task definition like so:
[tool.poe.tasks.add]
sequence = [{ cmd = "poetry add \"$package\"" }, { ref = "sync-dev-deps" }]
args = [{ name = "package", positional = true }]
The logic here is similar to bash, where you can disable glob expansion with quotes.
from poethepoet.
@nat-n ah, thank you for the workaround - works a treat. Appreciate your quick response, and again, thanks for the phenomenal tool, it vastly improves the DX of the project I'm working on. Keep up the great work!!
from poethepoet.
Related Issues (20)
- Using argument values to interpolate into task env values in cmd/shell tasks? HOT 2
- Missing POSIX executable on Win10 HOT 2
- Postinstall hook with tasks refering to package that's being installed HOT 1
- $POE_ROOT/$POE_PWD unavailable in tool.poe.env section HOT 3
- Including tasks from another file does not work with the poetry plugin when the poetry command is "" HOT 5
- Q-data@love
- Allow envars and shell commands usage in "include" path HOT 6
- Provide default poe root through env var HOT 2
- Wrap poetry HOT 3
- Poe uses different CLI args for working directory than Poetry HOT 2
- "Task names must start with a letter or underscore" error in 0.26.0 HOT 4
- docs recommended method fails to install as plugin at MacOS with poetry 1.8.3 HOT 2
- Improve display for sequence tasks
- sequence tasks | capture_stdout not working HOT 1
- User-defined variable substitution in [tools.poe.env] does not work since 0.26.0 HOT 2
- Unable to define a command which spans multiple lines HOT 3
- Poe script task uses global python path instead of the one in the virtual environment HOT 1
- Global task configuration? HOT 2
- env file interacts badly with glob HOT 2
- How to share variables among tasks? HOT 1
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 poethepoet.