Skip to content

Commit 3922dc2

Browse files
committed
added core version command
1 parent d517a4f commit 3922dc2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cmd/arduino_core.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ arduino core download arduino:samd=1.6.9 #for the specific version (in this case
8585
}
8686

8787
func init() {
88+
versions[arduinoCoreCmd.Name()] = CoreVersion
89+
8890
arduinoCmd.AddCommand(arduinoCoreCmd)
8991
arduinoCoreCmd.AddCommand(arduinoCoreListCmd)
9092
arduinoCoreCmd.AddCommand(arduinoCoreDownloadCmd)

common/net_functions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func DownloadIndex(indexPathFunc func() (string, error), URL string) error {
7070
return nil
7171
}
7272

73-
// DownloadPackage downloads a package from arduino repository, applying a label for the progress bar.
73+
// DownloadPackage downloads a package from arduino repository.
7474
func DownloadPackage(URL string, initialData *os.File, totalSize int64, handleResultFunc func(io.Reader, *os.File, int) error) error {
7575
if initialData == nil {
7676
return errors.New("Cannot fill a nil file pointer")

0 commit comments

Comments
 (0)