Skip to content

Commit 5ff3adc

Browse files
silvanocerzacmaglie
authored andcommitted
Move tr function in separate file
1 parent 394a1ac commit 5ff3adc

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

commands/board/attach.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@ import (
2727
"github.com/arduino/arduino-cli/arduino/cores/packagemanager"
2828
"github.com/arduino/arduino-cli/arduino/sketch"
2929
"github.com/arduino/arduino-cli/commands"
30-
"github.com/arduino/arduino-cli/i18n"
3130
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
3231
discovery "github.com/arduino/board-discovery"
3332
"github.com/arduino/go-paths-helper"
3433
)
3534

36-
var tr = i18n.Tr
37-
3835
// Attach FIXMEDOC
3936
func Attach(ctx context.Context, req *rpc.BoardAttachRequest, taskCB rpc.TaskProgressCB) (*rpc.BoardAttachResponse, error) {
4037
pme, release := commands.GetPackageManagerExplorer(req)

commands/board/board.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// This file is part of arduino-cli.
2+
//
3+
// Copyright 2020 ARDUINO SA (http://www.arduino.cc/)
4+
//
5+
// This software is released under the GNU General Public License version 3,
6+
// which covers the main part of arduino-cli.
7+
// The terms of this license can be found at:
8+
// https://www.gnu.org/licenses/gpl-3.0.en.html
9+
//
10+
// You can be released from the requirements of the above licenses by purchasing
11+
// a commercial license. Buying such a license is mandatory if you want to
12+
// modify or otherwise use the software for commercial activities involving the
13+
// Arduino software without disclosing the source code of your own applications.
14+
// To purchase a commercial license, send an email to license@arduino.cc.
15+
16+
package board
17+
18+
import "github.com/arduino/arduino-cli/i18n"
19+
20+
var tr = i18n.Tr

0 commit comments

Comments
 (0)