Add a new sketch
subcommand to retrieve build-related information
#2866
Labels
Milestone
sketch
subcommand to retrieve build-related information
#2866
Describe the request
Please consider adding a new subcommand for
sketch
to expose certain build-related information, including thebuild_path
of a given sketch.The primary motivation for this request is to allow clients of the CLI to access information related to the build path without needing to reimplement the CLI's logic for calculating the build folder path or compiling the sketch. The build folder name is derived from the sketch folder path, which can vary across different operating systems and configurations. It's fragile to reimplement it.
For instance, the CLI may generate paths that differ by case sensitivity on Windows (e.g.,
c:\
vsC:\
) or encounter issues with the 8.3 filename convention. Similarly, on macOS, two different paths may point to the same directory due to symlinks.Proposed Behavior:
build.options.json
, if available.This feature would improve the usability of the Arduino CLI, especially for developers looking to optimize their workflows.
Thank you for considering my request!
Describe the current behavior
It is not possible to retrieve the
build_path
of the sketch without compiling the sketch.Arduino CLI version
1.2.0
Operating system
macOS
Operating system version
15.3.1
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: