Skip to content

Commit 5b6398b

Browse files
committed
Made 'core list' procedure public
1 parent 3f60371 commit 5b6398b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli/core/list.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ func initListCommand() *cobra.Command {
5050
func runListCommand(args []string, all bool, updatableOnly bool) {
5151
inst := instance.CreateAndInit()
5252
logrus.Info("Executing `arduino-cli core list`")
53+
List(inst, all, updatableOnly)
54+
}
5355

56+
// List print a list of installed platforms.
57+
func List(inst *rpc.Instance, all bool, updatableOnly bool) {
5458
platforms, err := core.GetPlatforms(&rpc.PlatformListRequest{
5559
Instance: inst,
5660
UpdatableOnly: updatableOnly,

0 commit comments

Comments
 (0)