Ejemplo n.º 1
0
func initConfig(config *script.Config, a *api) {
	config.Snapshot = a.AddSnapshot
	config.Restore = a.Rollback
	config.TenantLookup = cliTenantLookup(a)
	config.SvcIDFromPath = cliServiceIDFromPath(a)
	config.SvcStart = cliServiceControl(a.StartService)
	config.SvcStop = cliServiceControl(a.StopService)
	config.SvcRestart = cliServiceControl(a.RestartService)
	config.SvcWait = cliServiceWait(a)
	config.Commit = a.Commit
	config.SvcUse = cliServiceUse(a)
}