basalt-rs/bedrock

Allow specifying commands as an array of arguments

Open

#56 opened on Mar 16, 2026

 (0 comments) (0 reactions) (0 assignees)Rust (0 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (0 stars)
PR merge metrics
 (PR metrics pending)

Description

Currently, all commands are accepted as a single string. This requires shell escaping in order to work correctly. We should additionally allow commands to be passed as an array of strings, where the first item is the program name and the remaining items are the arguments.

This should be done in such a way that the parsing returns an error if the command array is empty.

compile = "rustc -o solution solution.rs"

should be equivalent to

compile = ["rustc", "-o", "solution", "solution.rs"]

Contributor guide