File tree Expand file tree Collapse file tree 2 files changed +0
-36
lines changed Expand file tree Collapse file tree 2 files changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import (
2424 "github.com/arduino/arduino-cli/cli/instance"
2525 "github.com/arduino/arduino-cli/commands/upload"
2626 rpc "github.com/arduino/arduino-cli/rpc/commands"
27- "github.com/arduino/arduino-cli/table"
2827 "github.com/arduino/go-paths-helper"
2928 "github.com/sirupsen/logrus"
3029 "github.com/spf13/cobra"
@@ -95,20 +94,3 @@ func initSketchPath(sketchPath *paths.Path) *paths.Path {
9594 logrus .Infof ("Reading sketch from dir: %s" , wd )
9695 return wd
9796}
98-
99- type programmersList struct {
100- Programmers []* rpc.Programmer
101- }
102-
103- func (p * programmersList ) Data () interface {} {
104- return p .Programmers
105- }
106-
107- func (p * programmersList ) String () string {
108- t := table .New ()
109- t .SetHeader ("ID" , "Programmer Name" , "Platform" )
110- for _ , prog := range p .Programmers {
111- t .AddRow (prog .GetId (), prog .GetName (), prog .GetPlatform ())
112- }
113- return t .Render ()
114- }
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import (
2525 "github.com/arduino/arduino-cli/cli/instance"
2626 "github.com/arduino/arduino-cli/commands/upload"
2727 rpc "github.com/arduino/arduino-cli/rpc/commands"
28- "github.com/arduino/arduino-cli/table"
2928 "github.com/arduino/go-paths-helper"
3029 "github.com/sirupsen/logrus"
3130 "github.com/spf13/cobra"
@@ -122,20 +121,3 @@ func initSketchPath(sketchPath *paths.Path) *paths.Path {
122121 logrus .Infof ("Reading sketch from dir: %s" , wd )
123122 return wd
124123}
125-
126- type programmersList struct {
127- Programmers []* rpc.Programmer
128- }
129-
130- func (p * programmersList ) Data () interface {} {
131- return p .Programmers
132- }
133-
134- func (p * programmersList ) String () string {
135- t := table .New ()
136- t .SetHeader ("ID" , "Programmer Name" , "Platform" )
137- for _ , prog := range p .Programmers {
138- t .AddRow (prog .GetId (), prog .GetName (), prog .GetPlatform ())
139- }
140- return t .Render ()
141- }
You can’t perform that action at this time.
0 commit comments