Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
c428dc37
Commit
c428dc37
authored
Jun 04, 2019
by
Cristian Maglie
Committed by
Cristian Maglie
Jun 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Global round of go-fmt
parent
5b724c6f
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
38 additions
and
38 deletions
+38
-38
commands/compile/compile.go
commands/compile/compile.go
+3
-3
legacy/builder/add_additional_entries_to_context.go
legacy/builder/add_additional_entries_to_context.go
+1
-1
legacy/builder/client/client.go
legacy/builder/client/client.go
+10
-10
legacy/builder/container_find_includes.go
legacy/builder/container_find_includes.go
+1
-1
legacy/builder/fail_if_imported_library_is_wrong.go
legacy/builder/fail_if_imported_library_is_wrong.go
+1
-1
legacy/builder/hardware_loader.go
legacy/builder/hardware_loader.go
+1
-1
legacy/builder/i18n/errors.go
legacy/builder/i18n/errors.go
+4
-4
legacy/builder/libraries_loader.go
legacy/builder/libraries_loader.go
+2
-2
legacy/builder/phases/libraries_builder.go
legacy/builder/phases/libraries_builder.go
+1
-1
legacy/builder/resolve_library.go
legacy/builder/resolve_library.go
+1
-1
legacy/builder/rewrite_hardware_keys.go
legacy/builder/rewrite_hardware_keys.go
+1
-1
legacy/builder/setup_build_properties.go
legacy/builder/setup_build_properties.go
+1
-1
legacy/builder/test/add_build_board_property_if_missing_test.go
.../builder/test/add_build_board_property_if_missing_test.go
+1
-1
legacy/builder/test/helper.go
legacy/builder/test/helper.go
+1
-1
legacy/builder/test/libraries_loader_test.go
legacy/builder/test/libraries_loader_test.go
+1
-1
legacy/builder/test/rewrite_hardware_keys_test.go
legacy/builder/test/rewrite_hardware_keys_test.go
+1
-1
legacy/builder/test/tools_loader_test.go
legacy/builder/test/tools_loader_test.go
+1
-1
legacy/builder/test/unused_compiled_libraries_remover_test.go
...cy/builder/test/unused_compiled_libraries_remover_test.go
+1
-1
legacy/builder/test/utils_test.go
legacy/builder/test/utils_test.go
+2
-2
legacy/builder/types/context.go
legacy/builder/types/context.go
+1
-1
legacy/builder/unused_compiled_libraries_remover.go
legacy/builder/unused_compiled_libraries_remover.go
+1
-1
legacy/builder/warn_about_platform_rewrites.go
legacy/builder/warn_about_platform_rewrites.go
+1
-1
No files found.
commands/compile/compile.go
View file @
c428dc37
...
...
@@ -26,14 +26,14 @@ import (
"sort"
"strings"
"github.com/arduino/arduino-cli/legacy/builder"
"github.com/arduino/arduino-cli/legacy/builder/i18n"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/arduino/cores"
"github.com/arduino/arduino-cli/arduino/cores/packagemanager"
"github.com/arduino/arduino-cli/arduino/sketches"
"github.com/arduino/arduino-cli/cli"
"github.com/arduino/arduino-cli/commands"
"github.com/arduino/arduino-cli/legacy/builder"
"github.com/arduino/arduino-cli/legacy/builder/i18n"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/rpc"
paths
"github.com/arduino/go-paths-helper"
properties
"github.com/arduino/go-properties-orderedmap"
...
...
legacy/builder/add_additional_entries_to_context.go
View file @
c428dc37
...
...
@@ -30,10 +30,10 @@
package
builder
import
(
"github.com/arduino/arduino-cli/arduino/cores"
"github.com/arduino/arduino-cli/legacy/builder/constants"
"github.com/arduino/arduino-cli/legacy/builder/i18n"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/arduino/cores"
)
type
AddAdditionalEntriesToContext
struct
{}
...
...
legacy/builder/client/client.go
View file @
c428dc37
...
...
@@ -70,16 +70,16 @@ func main() {
exampleParames
:=
pb
.
BuildParams
{
BuiltInLibrariesFolders
:
"/ssd/Arduino-master/build/linux/work/libraries"
,
CustomBuildProperties
:
"build.warn_data_percentage=75"
,
FQBN
:
"arduino:avr:mega:cpu=atmega2560"
,
HardwareFolders
:
"/ssd/Arduino-master/build/linux/work/hardware,/home/martino/.arduino15/packages,/home/martino/eslov-sk/hardware"
,
OtherLibrariesFolders
:
"/home/martino/eslov-sk/libraries"
,
ArduinoAPIVersion
:
"10805"
,
SketchLocation
:
"/home/martino/eslov-sk/libraries/WiFi101/examples/ScanNetworks/ScanNetworks.ino"
,
ToolsFolders
:
"/ssd/Arduino-master/build/linux/work/tools-builder,/ssd/Arduino-master/build/linux/work/hardware/tools/avr,/home/martino/.arduino15/packages"
,
Verbose
:
true
,
WarningsLevel
:
"all"
,
BuildCachePath
:
"/tmp/arduino_cache_761418/"
,
CodeCompleteAt
:
"/home/martino/eslov-sk/libraries/WiFi101/examples/ScanNetworks/ScanNetworks.ino:56:9"
,
FQBN
:
"arduino:avr:mega:cpu=atmega2560"
,
HardwareFolders
:
"/ssd/Arduino-master/build/linux/work/hardware,/home/martino/.arduino15/packages,/home/martino/eslov-sk/hardware"
,
OtherLibrariesFolders
:
"/home/martino/eslov-sk/libraries"
,
ArduinoAPIVersion
:
"10805"
,
SketchLocation
:
"/home/martino/eslov-sk/libraries/WiFi101/examples/ScanNetworks/ScanNetworks.ino"
,
ToolsFolders
:
"/ssd/Arduino-master/build/linux/work/tools-builder,/ssd/Arduino-master/build/linux/work/hardware/tools/avr,/home/martino/.arduino15/packages"
,
Verbose
:
true
,
WarningsLevel
:
"all"
,
BuildCachePath
:
"/tmp/arduino_cache_761418/"
,
CodeCompleteAt
:
"/home/martino/eslov-sk/libraries/WiFi101/examples/ScanNetworks/ScanNetworks.ino:56:9"
,
}
//build(client, &exampleParames)
...
...
legacy/builder/container_find_includes.go
View file @
c428dc37
...
...
@@ -112,12 +112,12 @@ import (
"os/exec"
"time"
"github.com/arduino/arduino-cli/arduino/libraries"
"github.com/arduino/arduino-cli/legacy/builder/builder_utils"
"github.com/arduino/arduino-cli/legacy/builder/constants"
"github.com/arduino/arduino-cli/legacy/builder/i18n"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/legacy/builder/utils"
"github.com/arduino/arduino-cli/arduino/libraries"
"github.com/arduino/go-paths-helper"
"github.com/go-errors/errors"
...
...
legacy/builder/fail_if_imported_library_is_wrong.go
View file @
c428dc37
...
...
@@ -30,10 +30,10 @@
package
builder
import
(
"github.com/arduino/arduino-cli/arduino/libraries"
"github.com/arduino/arduino-cli/legacy/builder/constants"
"github.com/arduino/arduino-cli/legacy/builder/i18n"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/arduino/libraries"
)
type
FailIfImportedLibraryIsWrong
struct
{}
...
...
legacy/builder/hardware_loader.go
View file @
c428dc37
...
...
@@ -30,9 +30,9 @@
package
builder
import
(
"github.com/arduino/arduino-cli/arduino/cores/packagemanager"
"github.com/arduino/arduino-cli/legacy/builder/i18n"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/arduino/cores/packagemanager"
)
type
HardwareLoader
struct
{}
...
...
legacy/builder/i18n/errors.go
View file @
c428dc37
...
...
@@ -23,9 +23,9 @@ func UnwrapError(err error) error {
// Perhaps go-errors can do this already in later versions?
// See https://github.com/go-errors/errors/issues/14
switch
e
:=
err
.
(
type
)
{
case
*
errors
.
Error
:
return
e
.
Err
default
:
return
err
case
*
errors
.
Error
:
return
e
.
Err
default
:
return
err
}
}
legacy/builder/libraries_loader.go
View file @
c428dc37
...
...
@@ -32,11 +32,11 @@ package builder
import
(
"os"
"github.com/arduino/arduino-cli/legacy/builder/i18n"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/arduino/libraries"
"github.com/arduino/arduino-cli/arduino/libraries/librariesmanager"
"github.com/arduino/arduino-cli/arduino/libraries/librariesresolver"
"github.com/arduino/arduino-cli/legacy/builder/i18n"
"github.com/arduino/arduino-cli/legacy/builder/types"
)
type
LibrariesLoader
struct
{}
...
...
legacy/builder/phases/libraries_builder.go
View file @
c428dc37
...
...
@@ -33,12 +33,12 @@ import (
"path/filepath"
"strings"
"github.com/arduino/arduino-cli/arduino/libraries"
"github.com/arduino/arduino-cli/legacy/builder/builder_utils"
"github.com/arduino/arduino-cli/legacy/builder/constants"
"github.com/arduino/arduino-cli/legacy/builder/i18n"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/legacy/builder/utils"
"github.com/arduino/arduino-cli/arduino/libraries"
"github.com/arduino/go-paths-helper"
"github.com/arduino/go-properties-orderedmap"
)
...
...
legacy/builder/resolve_library.go
View file @
c428dc37
...
...
@@ -32,9 +32,9 @@ package builder
import
(
"fmt"
"github.com/arduino/arduino-cli/arduino/libraries"
"github.com/arduino/arduino-cli/legacy/builder/constants"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/arduino/libraries"
)
func
ResolveLibrary
(
ctx
*
types
.
Context
,
header
string
)
*
libraries
.
Library
{
...
...
legacy/builder/rewrite_hardware_keys.go
View file @
c428dc37
...
...
@@ -30,9 +30,9 @@
package
builder
import
(
"github.com/arduino/arduino-cli/arduino/cores"
"github.com/arduino/arduino-cli/legacy/builder/constants"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/arduino/cores"
)
type
RewriteHardwareKeys
struct
{}
...
...
legacy/builder/setup_build_properties.go
View file @
c428dc37
...
...
@@ -36,9 +36,9 @@ import (
"strings"
"time"
"github.com/arduino/arduino-cli/arduino/cores"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/legacy/builder/utils"
"github.com/arduino/arduino-cli/arduino/cores"
properties
"github.com/arduino/go-properties-orderedmap"
timeutils
"github.com/arduino/go-timeutils"
)
...
...
legacy/builder/test/add_build_board_property_if_missing_test.go
View file @
c428dc37
...
...
@@ -33,9 +33,9 @@ import (
"path/filepath"
"testing"
"github.com/arduino/arduino-cli/arduino/cores"
"github.com/arduino/arduino-cli/legacy/builder"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/arduino/cores"
"github.com/arduino/go-paths-helper"
"github.com/stretchr/testify/require"
)
...
...
legacy/builder/test/helper.go
View file @
c428dc37
...
...
@@ -37,10 +37,10 @@ import (
"testing"
"text/template"
"github.com/arduino/arduino-cli/arduino/libraries"
"github.com/arduino/arduino-cli/legacy/builder/constants"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/legacy/builder/utils"
"github.com/arduino/arduino-cli/arduino/libraries"
paths
"github.com/arduino/go-paths-helper"
"github.com/go-errors/errors"
"github.com/stretchr/testify/assert"
...
...
legacy/builder/test/libraries_loader_test.go
View file @
c428dc37
...
...
@@ -34,10 +34,10 @@ import (
"sort"
"testing"
"github.com/arduino/arduino-cli/arduino/libraries"
"github.com/arduino/arduino-cli/legacy/builder"
"github.com/arduino/arduino-cli/legacy/builder/constants"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/arduino/libraries"
paths
"github.com/arduino/go-paths-helper"
"github.com/stretchr/testify/require"
)
...
...
legacy/builder/test/rewrite_hardware_keys_test.go
View file @
c428dc37
...
...
@@ -32,9 +32,9 @@ package test
import
(
"testing"
"github.com/arduino/arduino-cli/arduino/cores"
"github.com/arduino/arduino-cli/legacy/builder"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/arduino/cores"
properties
"github.com/arduino/go-properties-orderedmap"
"github.com/stretchr/testify/require"
)
...
...
legacy/builder/test/tools_loader_test.go
View file @
c428dc37
...
...
@@ -33,9 +33,9 @@ import (
"sort"
"testing"
"github.com/arduino/arduino-cli/arduino/cores"
"github.com/arduino/arduino-cli/legacy/builder"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/arduino/cores"
paths
"github.com/arduino/go-paths-helper"
"github.com/stretchr/testify/require"
)
...
...
legacy/builder/test/unused_compiled_libraries_remover_test.go
View file @
c428dc37
...
...
@@ -32,9 +32,9 @@ package test
import
(
"testing"
"github.com/arduino/arduino-cli/arduino/libraries"
"github.com/arduino/arduino-cli/legacy/builder"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/arduino/libraries"
paths
"github.com/arduino/go-paths-helper"
"github.com/stretchr/testify/require"
)
...
...
legacy/builder/test/utils_test.go
View file @
c428dc37
...
...
@@ -109,8 +109,8 @@ func TestMapTrimSpace(t *testing.T) {
func
TestQuoteCppString
(
t
*
testing
.
T
)
{
cases
:=
map
[
string
]
string
{
`foo`
:
`"foo"`
,
`foo\bar`
:
`"foo\\bar"`
,
`foo`
:
`"foo"`
,
`foo\bar`
:
`"foo\\bar"`
,
`foo "is" quoted and \\bar"" escaped\`
:
`"foo \"is\" quoted and \\\\bar\"\" escaped\\"`
,
// ASCII 0x20 - 0x7e, excluding `
` !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_abcdefghijklmnopqrstuvwxyz{|}~`
:
`" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_abcdefghijklmnopqrstuvwxyz{|}~"`
,
...
...
legacy/builder/types/context.go
View file @
c428dc37
...
...
@@ -4,12 +4,12 @@ import (
"io"
"strings"
"github.com/arduino/arduino-cli/legacy/builder/i18n"
"github.com/arduino/arduino-cli/arduino/cores"
"github.com/arduino/arduino-cli/arduino/cores/packagemanager"
"github.com/arduino/arduino-cli/arduino/libraries"
"github.com/arduino/arduino-cli/arduino/libraries/librariesmanager"
"github.com/arduino/arduino-cli/arduino/libraries/librariesresolver"
"github.com/arduino/arduino-cli/legacy/builder/i18n"
paths
"github.com/arduino/go-paths-helper"
properties
"github.com/arduino/go-properties-orderedmap"
)
...
...
legacy/builder/unused_compiled_libraries_remover.go
View file @
c428dc37
...
...
@@ -30,10 +30,10 @@
package
builder
import
(
"github.com/arduino/arduino-cli/arduino/libraries"
"github.com/arduino/arduino-cli/legacy/builder/i18n"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/legacy/builder/utils"
"github.com/arduino/arduino-cli/arduino/libraries"
)
type
UnusedCompiledLibrariesRemover
struct
{}
...
...
legacy/builder/warn_about_platform_rewrites.go
View file @
c428dc37
...
...
@@ -32,9 +32,9 @@ package builder
import
(
"os"
"github.com/arduino/arduino-cli/arduino/cores"
"github.com/arduino/arduino-cli/legacy/builder/constants"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/arduino/arduino-cli/arduino/cores"
)
type
WarnAboutPlatformRewrites
struct
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment