arduino-cli icon indicating copy to clipboard operation
arduino-cli copied to clipboard

Allow customizing the new sketch template

Open gsingh93 opened this issue 2 years ago • 2 comments

Describe the request

The Arduino IDE allows customizing the default ino file with the arduino.sketch.inoBlueprint as mentioned here. It would be nice to have an equivalent version in arduino-cli when running arduino-cli sketch new. It may also be worth considering an option for a template sketch directory instead of just a template ino file.

Describe the current behavior

When running arduino-cli sketch new <project>, the same ino file with an empty setup and loop is created every time.

Arduino CLI version

arduino-cli Version: 0.33.1 Commit: 347bfeb0 Date: 2023-06-30T15:32:47Z

Operating system

macOS

Operating system version

13.4.1

Additional context

No response

Issue checklist

  • [X] I searched for previous requests in the issue tracker
  • [X] I verified the feature was still missing when using the nightly build
  • [X] My request contains all necessary details

gsingh93 avatar Jul 05 '23 07:07 gsingh93

Hello @gsingh93, thanks for the interest in the project. The link you provided is not working. Could you please elaborate a bit?

umbynos avatar Jul 10 '23 14:07 umbynos

Sorry about the broken link, it should be fixed now: https://forum.arduino.cc/t/how-to-edit-the-file-new-sketch-sketch-not-examples-01-basics-bareminium/1059543/2

gsingh93 avatar Jul 10 '23 14:07 gsingh93