basalt-rs/bedrock

Allow specifying commands as an array of arguments

開放

#56 建立於 2026年3月16日

 (0 則留言) (0 個反應) (0 位負責人)Rust (0 個分叉)auto 404
enhancementgood first issue

倉庫指標

星標
 (0 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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"]

貢獻者指南