Skip to content

tool.rye.scripts cmd format with lists fails #21

Closed

Description

@God-damnit-all

Right now, task-keeper supports the following syntaxes from rye:

[tool.rye.scripts]
foo = "python --version"
bar = { cmd = "python --version" }

However, it does not support doing it like this, which is valid syntax in rye:

[tool.rye.scripts]
ver = { cmd = ["python", "--version"] }

It throws this error:

[tk] execute start from uvs

thread 'main' (12840) panicked at src\keeper.rs:97:79:
called `Result::unwrap()` on an `Err` value: TK-100500: failed to run tasks: "\"python\"" "\"--version\""
├╴at src\command_utils.rs:154:10
│
╰─▶ program not found
    ╰╴at src\command_utils.rs:154:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The reason for this syntax in rye was to ensure argument quoting and things like spaces wouldn't be an issue.

Activity

  1. self-assigned this
    on Jun 11, 2026
  2. linux-china commented on Jun 11, 2026

    @linux-china
    Owner

    Please try version of 0.35.2

  3. God-damnit-all commented on Jun 12, 2026

    @God-damnit-all
    Author

    It works! Even seems to fix another bug where it wouldn't work unless the file had [tools.uv] somewhere in it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions