You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+18-16Lines changed: 18 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,7 @@ import (
13
13
"time"
14
14
15
15
log "github.com/Sirupsen/logrus"
16
-
<<<<<<< e73846650fde9b0955aa35e237100ec552af47fb
17
-
=======
18
16
"github.com/arduino/arduino-create-agent/tools"
19
-
"github.com/carlescere/scheduler"
20
-
>>>>>>>Moveinitializationoftoolsinpackage tools
21
17
"github.com/gin-gonic/gin"
22
18
"github.com/itsjamie/gin-cors"
23
19
"github.com/kardianos/osext"
@@ -38,16 +34,16 @@ var (
38
34
gcType=flag.String("gc", "std", "Type of garbage collection. std = Normal garbage collection allowing system to decide (this has been known to cause a stop the world in the middle of a CNC job which can cause lost responses from the CNC controller and thus stalled jobs. use max instead to solve.), off = let memory grow unbounded (you have to send in the gc command manually to garbage collect or you will run out of RAM eventually), max = Force garbage collection on each recv or send on a serial port (this minimizes stop the world events and thus lost serial responses, but increases CPU usage)")
// hostname. allow user to override, otherwise we look it up
41
-
hostname=flag.String("hostname", "unknown-hostname", "Override the hostname we get from the OS")
42
-
updateUrl=flag.String("updateUrl", "", "")
43
-
appName=flag.String("appName", "", "")
44
-
genCert=flag.Bool("generateCert", false, "")
45
-
globalToolsMap=make(map[string]string)
46
-
portstring
47
-
portSSLstring
48
-
origins=flag.String("origins", "", "Allowed origin list for CORS")
49
-
signatureKey=flag.String("signatureKey", "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvc0yZr1yUSen7qmE3cxF\nIE12rCksDnqR+Hp7o0nGi9123eCSFcJ7CkIRC8F+8JMhgI3zNqn4cUEn47I3RKD1\nZChPUCMiJCvbLbloxfdJrUi7gcSgUXrlKQStOKF5Iz7xv1M4XOP3JtjXLGo3EnJ1\npFgdWTOyoSrA8/w1rck4c/ISXZSinVAggPxmLwVEAAln6Itj6giIZHKvA2fL2o8z\nCeK057Lu8X6u2CG8tRWSQzVoKIQw/PKK6CNXCAy8vo4EkXudRutnEYHEJlPkVgPn\n2qP06GI+I+9zKE37iqj0k1/wFaCVXHXIvn06YrmjQw6I0dDj/60Wvi500FuRVpn9\ntwIDAQAB\n-----END PUBLIC KEY-----", "Pem-encoded public key to verify signed commandlines")
50
-
address=flag.String("address", "127.0.0.1", "The address where to listen. Defaults to localhost")
37
+
hostname=flag.String("hostname", "unknown-hostname", "Override the hostname we get from the OS")
38
+
updateUrl=flag.String("updateUrl", "", "")
39
+
appName=flag.String("appName", "", "")
40
+
genCert=flag.Bool("generateCert", false, "")
41
+
portstring
42
+
portSSLstring
43
+
origins=flag.String("origins", "", "Allowed origin list for CORS")
44
+
address=flag.String("address", "127.0.0.1", "The address where to listen. Defaults to localhost")
45
+
signatureKey=flag.String("signatureKey", "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvc0yZr1yUSen7qmE3cxF\nIE12rCksDnqR+Hp7o0nGi9123eCSFcJ7CkIRC8F+8JMhgI3zNqn4cUEn47I3RKD1\nZChPUCMiJCvbLbloxfdJrUi7gcSgUXrlKQStOKF5Iz7xv1M4XOP3JtjXLGo3EnJ1\npFgdWTOyoSrA8/w1rck4c/ISXZSinVAggPxmLwVEAAln6Itj6giIZHKvA2fL2o8z\nCeK057Lu8X6u2CG8tRWSQzVoKIQw/PKK6CNXCAy8vo4EkXudRutnEYHEJlPkVgPn\n2qP06GI+I+9zKE37iqj0k1/wFaCVXHXIvn06YrmjQw6I0dDj/60Wvi500FuRVpn9\ntwIDAQAB\n-----END PUBLIC KEY-----", "Pem-encoded public key to verify signed commandlines")
0 commit comments