-
-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[breaking] refactor: made some golang modules private (part 2) (#2455)
* Made 'configuration' package internal * Made 'arduino' package internal * Moved errors in their own package * Moved directories init out of commands/internal/instances * Updated docs * Removed dep on pkg/errors library * Update easyjson task and generated files * Move the terminal detection subroutines in feedback package This also fix the linter errors: internal/cli/configuration/term.go:25:39: use of `os.Stdin` forbidden because "in cli package use `feedback.*` instead" (forbidigo) var IsInteractive = isatty.IsTerminal(os.Stdin.Fd()) || isatty.IsCygwinTerminal(os.Stdin.Fd()) ^ internal/cli/configuration/term.go:28:36: use of `os.Stdout` forbidden because "in cli package use `feedback.*` instead" (forbidigo) var HasConsole = isatty.IsTerminal(os.Stdout.Fd()) || isatty.IsCygwinTerminal(os.Stdout.Fd()) * Fix linter warning * Fixed docs:include-configuration-json-schema task * Fixed build test for discovery_client
- Loading branch information
Showing
496 changed files
with
789 additions
and
866 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,8 +130,8 @@ tasks: | |
desc: Run easyjson code generation | ||
cmds: | ||
- go install github.com/mailru/easyjson/[email protected] | ||
- easyjson arduino/cores/packageindex/index.go | ||
- easyjson arduino/libraries/librariesindex/json.go | ||
- easyjson internal/arduino/cores/packageindex/index.go | ||
- easyjson internal/arduino/libraries/librariesindex/json.go | ||
|
||
go:add-license-headers: | ||
desc: Add missing go license headers | ||
|
@@ -246,7 +246,7 @@ tasks: | |
docs:include-configuration-json-schema: | ||
desc: Copy configuration JSON schema to make it available in documentation | ||
cmds: | ||
- cp ./configuration/configuration.schema.json ./docs/configuration.schema.json | ||
- cp ./internal/cli/configuration/configuration.schema.json ./docs/configuration.schema.json | ||
|
||
protoc:check: | ||
desc: Perform linting of the protobuf definitions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
// Arduino software without disclosing the source code of your own applications. | ||
// To purchase a commercial license, send an email to [email protected]. | ||
|
||
package arduino | ||
package cmderrors | ||
|
||
import ( | ||
"fmt" | ||
|
Oops, something went wrong.