From 6a2794ac09115f989e837ada3d3a575a9810ea42 Mon Sep 17 00:00:00 2001 From: mitchell Date: Thu, 31 Aug 2023 16:05:29 -0400 Subject: [PATCH] Renamed startup flag to autostart based on PR feedback. --- cmd/state-svc/autostart/autostart.go | 2 +- cmd/state-svc/main.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/state-svc/autostart/autostart.go b/cmd/state-svc/autostart/autostart.go index 6e79056518..245843201d 100644 --- a/cmd/state-svc/autostart/autostart.go +++ b/cmd/state-svc/autostart/autostart.go @@ -13,7 +13,7 @@ import ( var Options = autostart.Options{ Name: constants.SvcAppName, LaunchFileName: constants.SvcLaunchFileName, - Args: []string{"start", "--startup"}, + Args: []string{"start", "--autostart"}, } func RegisterConfigListener(cfg *config.Instance) error { diff --git a/cmd/state-svc/main.go b/cmd/state-svc/main.go index 93de26d4b1..a61f981ddb 100644 --- a/cmd/state-svc/main.go +++ b/cmd/state-svc/main.go @@ -122,7 +122,7 @@ func run(cfg *config.Instance) error { ) var foregroundArgText string - var startup bool + var autostart bool cmd.AddChildren( captain.NewCommand( @@ -131,14 +131,14 @@ func run(cfg *config.Instance) error { "Start the ActiveState Service (Background)", p, []*captain.Flag{ - {Name: "startup", Value: &startup}, // differentiate between autostart and cli invocation + {Name: "autostart", Value: &autostart, Hidden: true}, // differentiate between autostart and cli invocation }, nil, func(ccmd *captain.Command, args []string) error { logging.Debug("Running CmdStart") argText := "svc-start:cli" - if startup { - argText = "svc-start:startup" + if autostart { + argText += "-autostart" } return runStart(out, argText) },