mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-20 09:47:49 +02:00
Move flag to install/reconfigure
This commit is contained in:
parent
a0436a201d
commit
aef621448d
@ -36,11 +36,12 @@ type program struct {
|
|||||||
func init() {
|
func init() {
|
||||||
serviceCmd.AddCommand(runCmd, startCmd, stopCmd, restartCmd, installCmd, uninstallCmd, reconfigureCmd)
|
serviceCmd.AddCommand(runCmd, startCmd, stopCmd, restartCmd, installCmd, uninstallCmd, reconfigureCmd)
|
||||||
|
|
||||||
serviceCmd.PersistentFlags().StringSliceVar(&serviceEnvVars, "service-env", nil,
|
serviceEnvDesc := `Sets extra environment variables for the service. ` +
|
||||||
`Sets extra environment variables for the service. `+
|
`You can specify a comma-separated list of KEY=VALUE pairs. ` +
|
||||||
`You can specify a comma-separated list of KEY=VALUE pairs. `+
|
`E.g. --service-env LOG_LEVEL=debug,CUSTOM_VAR=value`
|
||||||
`E.g. --service-env LOG_LEVEL=debug,CUSTOM_VAR=value`,
|
|
||||||
)
|
installCmd.Flags().StringSliceVar(&serviceEnvVars, "service-env", nil, serviceEnvDesc)
|
||||||
|
reconfigureCmd.Flags().StringSliceVar(&serviceEnvVars, "service-env", nil, serviceEnvDesc)
|
||||||
}
|
}
|
||||||
|
|
||||||
func newProgram(ctx context.Context, cancel context.CancelFunc) *program {
|
func newProgram(ctx context.Context, cancel context.CancelFunc) *program {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user