Skip to content

Commit 07504d7

Browse files
matteosuppocmaglie
authored andcommitted
Rename ide-version to core-api-version
Signed-off-by: Matteo Suppo <[email protected]>
1 parent db653b2 commit 07504d7

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This tool generates function prototypes and gathers library paths, providing `gc
3131

3232
* `-debug-level`: Optional, defaults to "5". Used for debugging. Set it to 10 when submitting an issue.
3333

34-
* `-ide-version`: Optional, defaults to "10600". The version of the Arduino IDE which is using this tool.
34+
* `-core-api-version`: Optional, defaults to "10600". The version of the Arduino IDE which is using this tool.
3535

3636
* `-logger`: Optional, can be "human" or "machine". Defaults to "human". If "machine", messages emitted will be in a format which the Arduino IDE understands and that it uses for I18N.
3737

@@ -48,13 +48,13 @@ Final mandatory parameter is the sketch to compile (of course).
4848
Every time you run this tool, it will create a `build.options.json` file in build path. It's used to understand if build options (such as hardware folders, fqbn and so on) were changed when compiling the same sketch.
4949
If they changed, the whole build path is wiped out. If they didn't change, previous compiled files will be reused if the corresponding source files didn't change as well.
5050
You can save this file locally and use it instead of specifying `-hardware`, `-tools`, `-libraries`, `-fqbn`, `-pref` and `-ide-version`.
51-
51+
5252
### Using it for continuously verify your libraries or cores
5353

5454
See [Doing continuous integration with arduino builder](https://github.com/arduino/arduino-builder/wiki/Doing-continuous-integration-with-arduino-builder/).
55-
55+
5656
### Building from source
57-
57+
5858
You need [Go 1.4.3](https://golang.org/dl/#go1.4.3).
5959

6060
Repo root contains script `setup_go_env_vars`. Use it as is or as a template for setting up Go environment variables.

main.go

+8-7
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,21 @@
3131
package main
3232

3333
import (
34-
"arduino.cc/builder"
35-
"arduino.cc/builder/constants"
36-
"arduino.cc/builder/gohasissues"
37-
"arduino.cc/builder/i18n"
38-
"arduino.cc/builder/utils"
3934
"encoding/json"
4035
"flag"
4136
"fmt"
42-
"github.com/go-errors/errors"
4337
"io/ioutil"
4438
"os"
4539
"os/exec"
4640
"strings"
4741
"syscall"
42+
43+
"arduino.cc/builder"
44+
"arduino.cc/builder/constants"
45+
"arduino.cc/builder/gohasissues"
46+
"arduino.cc/builder/i18n"
47+
"arduino.cc/builder/utils"
48+
"github.com/go-errors/errors"
4849
)
4950

5051
const VERSION = "1.3.9"
@@ -59,7 +60,7 @@ const FLAG_BUILT_IN_LIBRARIES = "built-in-libraries"
5960
const FLAG_LIBRARIES = "libraries"
6061
const FLAG_PREFS = "prefs"
6162
const FLAG_FQBN = "fqbn"
62-
const FLAG_IDE_VERSION = "ide-version"
63+
const FLAG_IDE_VERSION = "core-api-version"
6364
const FLAG_BUILD_PATH = "build-path"
6465
const FLAG_VERBOSE = "verbose"
6566
const FLAG_QUIET = "quiet"

0 commit comments

Comments
 (0)