Merge pull request #4407 from wkloucek/rename-extensions-to-services-reloaded

rename extensions to services (leftover occurences)
This commit is contained in:
Willy Kloucek
2022-08-18 14:03:20 +02:00
committed by GitHub
78 changed files with 157 additions and 151 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ import (
func Server(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "server",
Usage: fmt.Sprintf("start %s extension without runtime (unsupervised mode)", cfg.Service.Name),
Usage: fmt.Sprintf("start the %s service without runtime (unsupervised mode)", cfg.Service.Name),
Category: "server",
Before: func(c *cli.Context) error {
err := parser.ParseConfig(cfg)
@@ -97,7 +97,7 @@ func Server(cfg *config.Config) *cli.Command {
}
}
// defineContext sets the context for the extension. If there is a context configured it will create a new child from it,
// defineContext sets the context for the service. If there is a context configured it will create a new child from it,
// if not, it will create a root context that can be cancelled.
func defineContext(cfg *config.Config) (context.Context, context.CancelFunc) {
return func() (context.Context, context.CancelFunc) {
@@ -16,7 +16,7 @@ import (
func Version(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "version",
Usage: "print the version of this binary and the running extension instances",
Usage: "print the version of this binary and the running service instances",
Category: "info",
Action: func(c *cli.Context) error {
fmt.Println("Version: " + version.GetString())