Skip to content

Commit 0e8bd9e

Browse files
committed
move vars on top (like other files)
1 parent c5f7fbf commit 0e8bd9e

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

cli/daemon/daemon.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ import (
4141
"google.golang.org/grpc"
4242
)
4343

44-
var tr = i18n.Tr
44+
var (
45+
tr = i18n.Tr
46+
daemonize bool
47+
debug bool
48+
debugFilters []string
49+
)
4550

4651
// NewCommand created a new `daemon` command
4752
func NewCommand() *cobra.Command {
@@ -61,10 +66,6 @@ func NewCommand() *cobra.Command {
6166
return cmd
6267
}
6368

64-
var daemonize bool
65-
var debug bool
66-
var debugFilters []string
67-
6869
func runDaemonCommand(cmd *cobra.Command, args []string) {
6970

7071
if configuration.Settings.GetBool("metrics.enabled") {

i18n/data/en.po

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ msgstr "Disable completion description for shells that support it"
561561
msgid "Disconnected"
562562
msgstr "Disconnected"
563563

564-
#: cli/daemon/daemon.go:60
564+
#: cli/daemon/daemon.go:65
565565
msgid "Display only the provided gRPC calls"
566566
msgstr "Display only the provided gRPC calls"
567567

@@ -574,7 +574,7 @@ msgstr "Do not install dependencies."
574574
msgid "Do not perform the actual upload, just log out actions"
575575
msgstr "Do not perform the actual upload, just log out actions"
576576

577-
#: cli/daemon/daemon.go:58
577+
#: cli/daemon/daemon.go:63
578578
msgid "Do not terminate daemon process if the parent process dies"
579579
msgstr "Do not terminate daemon process if the parent process dies"
580580

@@ -602,7 +602,7 @@ msgstr "Downloads one or more cores and corresponding tool dependencies."
602602
msgid "Downloads one or more libraries without installing them."
603603
msgstr "Downloads one or more libraries without installing them."
604604

605-
#: cli/daemon/daemon.go:59
605+
#: cli/daemon/daemon.go:64
606606
msgid "Enable debug logging of gRPC calls"
607607
msgstr "Enable debug logging of gRPC calls"
608608

@@ -1042,19 +1042,19 @@ msgstr "Failed to create data directory"
10421042
msgid "Failed to create downloads directory"
10431043
msgstr "Failed to create downloads directory"
10441044

1045-
#: cli/daemon/daemon.go:124
1045+
#: cli/daemon/daemon.go:125
10461046
msgid "Failed to listen on TCP port: %[1]s. %[2]s is an invalid port."
10471047
msgstr "Failed to listen on TCP port: %[1]s. %[2]s is an invalid port."
10481048

1049-
#: cli/daemon/daemon.go:118
1049+
#: cli/daemon/daemon.go:119
10501050
msgid "Failed to listen on TCP port: %[1]s. %[2]s is unknown name."
10511051
msgstr "Failed to listen on TCP port: %[1]s. %[2]s is unknown name."
10521052

1053-
#: cli/daemon/daemon.go:133
1053+
#: cli/daemon/daemon.go:134
10541054
msgid "Failed to listen on TCP port: %[1]s. Unexpected error: %[2]v"
10551055
msgstr "Failed to listen on TCP port: %[1]s. Unexpected error: %[2]v"
10561056

1057-
#: cli/daemon/daemon.go:130
1057+
#: cli/daemon/daemon.go:131
10581058
msgid "Failed to listen on TCP port: %s. Address already in use."
10591059
msgstr "Failed to listen on TCP port: %s. Address already in use."
10601060

@@ -1807,15 +1807,15 @@ msgstr "Replacing %[1]s with %[2]s"
18071807
msgid "Required tool:"
18081808
msgstr "Required tool:"
18091809

1810-
#: cli/daemon/daemon.go:50
1810+
#: cli/daemon/daemon.go:55
18111811
msgid "Run as a daemon on port: %s"
18121812
msgstr "Run as a daemon on port: %s"
18131813

18141814
#: cli/monitor/monitor.go:62
18151815
msgid "Run in silent mode, show only monitor input and output."
18161816
msgstr "Run in silent mode, show only monitor input and output."
18171817

1818-
#: cli/daemon/daemon.go:51
1818+
#: cli/daemon/daemon.go:56
18191819
msgid "Running as a daemon the initialization of cores and libraries is done only once."
18201820
msgstr "Running as a daemon the initialization of cores and libraries is done only once."
18211821

@@ -2021,7 +2021,7 @@ msgstr "Skipping: {0}"
20212021
msgid "TOUCH: error during reset: %s"
20222022
msgstr "TOUCH: error during reset: %s"
20232023

2024-
#: cli/daemon/daemon.go:56
2024+
#: cli/daemon/daemon.go:61
20252025
msgid "The TCP port the daemon will listen to"
20262026
msgstr "The TCP port the daemon will listen to"
20272027

0 commit comments

Comments
 (0)