We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7d5354 commit 25e6df5Copy full SHA for 25e6df5
cli/compile/compile.go
@@ -291,9 +291,13 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
291
fmt.Println(tr("Currently, Build Profiles only support libraries available through Arduino Library Manager."))
292
}
293
294
+ newProfileName := "my_profile_name"
295
+ if split := strings.Split(compileRequest.GetFqbn(), ":"); len(split) > 2 {
296
+ newProfileName = split[2]
297
+ }
298
fmt.Println()
299
fmt.Println("profile:")
- fmt.Println(" my_profile_name:")
300
+ fmt.Println(" " + newProfileName + ":")
301
fmt.Println(" fqbn: " + compileRequest.GetFqbn())
302
fmt.Println(" platforms:")
303
boardPlatform := compileRes.GetBoardPlatform()
0 commit comments