Skip to content

Conversation

@cgwalters
Copy link
Member

Followup to previous work on RunCmdSync which is aiming
to clean up how we run processes.

The rationale for this helper is much the same as APIs like
https://pkg.go.dev/github.com/stretchr/testify@v1.7.0/assert#Contains

It encapsulates this common pattern in a single line.

Also unlike MustSSH, we log the command to the systemd journal
too.

Followup to previous work on `RunCmdSync` which is aiming
to clean up how we run processes.

The rationale for this helper is much the same as APIs like
https://pkg.go.dev/github.com/stretchr/testify@v1.7.0/assert#Contains

It encapsulates this common pattern in a single line.

Also unlike `MustSSH`, we log the command to the systemd journal
too.
@lucab lucab enabled auto-merge (rebase) September 8, 2021 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants