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
* [test] leverage launchd tool to implement autostart feature on macos
* use embed and template
* add check on macos
* exit after loading the agent, `launchctl load ...` will start the binary
* test new version of the installer config
* change the Label in the plist file to comply with the apple convention
* factor out the logic of Install/Uninstall of the plist in config package
* made functions private
* Revert "test new version of the installer config"
This reverts commit ff33dbc.
* fix lint
Copy file name to clipboardExpand all lines: main.go
+25-15
Original file line number
Diff line number
Diff line change
@@ -66,21 +66,22 @@ var (
66
66
67
67
// iniflags
68
68
var (
69
-
address=iniConf.String("address", "127.0.0.1", "The address where to listen. Defaults to localhost")
70
-
appName=iniConf.String("appName", "", "")
71
-
gcType=iniConf.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)")
72
-
hostname=iniConf.String("hostname", "unknown-hostname", "Override the hostname we get from the OS")
73
-
httpProxy=iniConf.String("httpProxy", "", "Proxy server for HTTP requests")
74
-
httpsProxy=iniConf.String("httpsProxy", "", "Proxy server for HTTPS requests")
75
-
indexURL=iniConf.String("indexURL", "https://downloads.arduino.cc/packages/package_staging_index.json", "The address from where to download the index json containing the location of upload tools")
origins=iniConf.String("origins", "", "Allowed origin list for CORS")
79
-
regExpFilter=iniConf.String("regex", "usb|acm|com", "Regular expression to filter serial port list")
80
-
signatureKey=iniConf.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")
address=iniConf.String("address", "127.0.0.1", "The address where to listen. Defaults to localhost")
70
+
appName=iniConf.String("appName", "", "")
71
+
gcType=iniConf.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)")
72
+
hostname=iniConf.String("hostname", "unknown-hostname", "Override the hostname we get from the OS")
73
+
httpProxy=iniConf.String("httpProxy", "", "Proxy server for HTTP requests")
74
+
httpsProxy=iniConf.String("httpsProxy", "", "Proxy server for HTTPS requests")
75
+
indexURL=iniConf.String("indexURL", "https://downloads.arduino.cc/packages/package_staging_index.json", "The address from where to download the index json containing the location of upload tools")
origins=iniConf.String("origins", "", "Allowed origin list for CORS")
79
+
regExpFilter=iniConf.String("regex", "usb|acm|com", "Regular expression to filter serial port list")
80
+
signatureKey=iniConf.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