Skip to content

Passing configurations from runLocally to main process #3685

Discussion options

You must be logged in to vote

Just do

on(selectedHosts(), function () {
    set('some-config', 'some-value');
});

// Or with arrow function
on(selectedHosts(), fn() => set('some-config', $some-value));

The callback is executed in the context of each hosts so in this example the set is applied to all selected hosts.

Replies: 1 comment 16 replies

Comment options

You must be logged in to vote
16 replies
@Tristan-MyAnaPro
Comment options

@antonmedv
Comment options

@boesing
Comment options

@Tristan-MyAnaPro
Comment options

Answer selected by boesing
@boesing
Comment options

@antonmedv
Comment options

@boesing
Comment options

@antonmedv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants