mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-04 01:07:49 +02:00
cmd/ctrld: add commands to control ctrld as a system service
Supported actions: - start: install and start ctrld as a system service - stop: stop the ctrld service - restart: restart ctrld service - status: show status of ctrld service - uninstall: remove ctrld from system service
This commit is contained in:
committed by
Cuong Manh Le
parent
9e7578fb29
commit
ec72af1916
@@ -12,6 +12,7 @@ import (
|
||||
func SampleConfig(t *testing.T) *ctrld.Config {
|
||||
v := viper.NewWithOptions(viper.KeyDelimiter("::"))
|
||||
ctrld.InitConfig(v, "test_load_config")
|
||||
v.SetConfigType("toml")
|
||||
require.NoError(t, v.ReadConfig(strings.NewReader(sampleConfigContent)))
|
||||
var cfg ctrld.Config
|
||||
require.NoError(t, v.Unmarshal(&cfg))
|
||||
|
||||
Reference in New Issue
Block a user