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
6992de7a
Unverified
Commit
6992de7a
authored
Mar 10, 2023
by
Cristian Maglie
Committed by
GitHub
Mar 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added machine-readable IP:PORT in text-mode 'daemon' (#2101)
parent
fed439a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
internal/cli/daemon/daemon.go
internal/cli/daemon/daemon.go
+3
-1
No files found.
internal/cli/daemon/daemon.go
View file @
6992de7a
...
...
@@ -16,6 +16,7 @@
package
daemon
import
(
"encoding/json"
"errors"
"fmt"
"net"
...
...
@@ -173,5 +174,6 @@ func (r daemonResult) Data() interface{} {
}
func
(
r
daemonResult
)
String
()
string
{
return
tr
(
"Daemon is now listening on %s:%s"
,
r
.
IP
,
r
.
Port
)
j
,
_
:=
json
.
Marshal
(
r
)
return
fmt
.
Sprintln
(
tr
(
"Daemon is now listening on %s:%s"
,
r
.
IP
,
r
.
Port
))
+
fmt
.
Sprintln
(
string
(
j
))
}
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