Can't run custom script #346
-
// _config.ts
import lume from "lume/mod.ts";
const site = lume();
console.info("Deno.args:", Deno.args);
site.script("hello", () => console.log("hello world"));
export default site; $ deno task lume run hello
Task lume echo "import 'lume/cli.ts'" | deno run --unstable -A - "run" "hello"
Loading config file file:///run/media/wildan/Projects/Examples/lume-example/_config.ts
Deno.args: [ "run", "hello" ]
⚡️ h
/bin/bash: line 1: h: command not found 🤔 Is it just me? |
Beta Was this translation helpful? Give feedback.
Answered by
oscarotero
Dec 30, 2022
Replies: 1 comment 1 reply
-
Yes, it was a bug. I cannot release a new version right now because i'm in the middle of something, but you can use the development version ( |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
DrSensor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it was a bug.
At some point, cliffy (the library I use to build the CLI) changed the way the variadic arguments are passed. I just fixed it in 2c59a27
I cannot release a new version right now because i'm in the middle of something, but you can use the development version (
lume upgrade --dev
).