We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88d89c5 commit 0f82574Copy full SHA for 0f82574
cli/arguments/reference.go
@@ -56,6 +56,10 @@ func ParseReferences(args []string) ([]*Reference, error) {
56
}
57
58
// ParseReference parses a string and returns a Reference object.
59
+// It tries to infer the platform the user is asking for.
60
+// To achieve that, it tries to use github.com/arduino/arduino-cli/commands/core.GetPlatform
61
+// Note that the Reference is returned rightaway if the arg inserted by the user mathes perfectly one in the response of core.GetPlatform
62
+// A MultiplePlatformsError is returned if the platform searched by the user matches multiple platforms
63
func ParseReference(arg string) (*Reference, error) {
64
logrus.Infof("Parsing reference %s", arg)
65
ret := &Reference{}
0 commit comments