Skip to content

Commit 0a4ff10

Browse files
committed
change GetProgrammer function
1 parent 653536c commit 0a4ff10

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

cli/arguments/programmer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (p *Programmer) AddToCommand(cmd *cobra.Command) {
3232
})
3333
}
3434

35-
// GetProgrammer returns the programmer
36-
func (p *Programmer) GetProgrammer() string {
35+
// String returns the programmer
36+
func (p *Programmer) String() string {
3737
return p.programmer
3838
}

cli/burnbootloader/burnbootloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func runBootloaderCommand(command *cobra.Command, args []string) {
8080
Port: discoveryPort.ToRPC(),
8181
Verbose: verbose,
8282
Verify: verify,
83-
Programmer: programmer.GetProgrammer(),
83+
Programmer: programmer.String(),
8484
DryRun: dryRun,
8585
}, os.Stdout, os.Stderr); err != nil {
8686
feedback.Errorf(tr("Error during Upload: %v"), err)

cli/compile/compile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
210210
Verbose: verbose,
211211
Verify: verify,
212212
ImportDir: buildPath,
213-
Programmer: programmer.GetProgrammer(),
213+
Programmer: programmer.String(),
214214
UserFields: fields,
215215
}
216216

cli/debug/debug.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func runDebugCommand(command *cobra.Command, args []string) {
8282
Port: discoveryPort.ToRPC(),
8383
Interpreter: interpreter,
8484
ImportDir: importDir,
85-
Programmer: programmer.GetProgrammer(),
85+
Programmer: programmer.String(),
8686
}
8787

8888
if printInfo {

cli/upload/upload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func runUploadCommand(command *cobra.Command, args []string) {
113113
Verify: verify,
114114
ImportFile: importFile,
115115
ImportDir: importDir,
116-
Programmer: programmer.GetProgrammer(),
116+
Programmer: programmer.String(),
117117
DryRun: dryRun,
118118
UserFields: fields,
119119
}, os.Stdout, os.Stderr); err != nil {

0 commit comments

Comments
 (0)