Skip to content

xtask: rework example command structure #3832

@MabezDev

Description

@MabezDev

To run a single example currently this is the command: cargo xtask run example examples esp32s3 --example gpio_interrupt, which involves writing example three times.

I propose a new syntax:

cargo xtask run example esp32s3 gpio_interrupt

I'd also accept

cargo xtask run example gpio_interrupt --chip esp32s3

as a viable alternative (bonus points if we get a chip selector if we omit --chip

This new syntax assumes we're always running examples from the examples directory. This makes sense imo, in the 1.5 years we've had this xtask, I've never tried to run an example elsewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    automationRepository automation using cargo-xtask

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions