8000 Enable creating new sketches from a template directory by gsingh93 · Pull Request #2359 · arduino/arduino-cli · GitHub
[go: up one dir, main page]

Skip to content

Enable creating new sketches from a template directory #2359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add directories.template config option
  • Loading branch information
gsingh93 committed Oct 19, 2023
commit 79f2e138b020b340de017d005711d14af097eb28
1 change: 1 addition & 0 deletions configuration/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func SetDefaults(settings *viper.Viper) {
// arduino directories
settings.SetDefault("directories.Data", getDefaultArduinoDataDir())
settings.SetDefault("directories.Downloads", filepath.Join(getDefaultArduinoDataDir(), "staging"))
settings.SetDefault("directories.Template", "")
settings.SetDefault("directories.User", getDefaultUserDir())

// Sketch compilation
Expand Down
1 change: 1 addition & 0 deletions internal/cli/config/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var validMap = map[string]reflect.Kind{
"daemon.port": reflect.String,
"directories.data": reflect.String,
"directories.downloads": reflect.String,
"directories.template": reflect.String,
"directories.user": reflect.String,
"directories.builtin.tools": reflect.String,
"directories.builtin.libraries": reflect.String,
Expand Down
0