Skip to content

docs(examples): add package-level examples for core rig workflows - #358

Merged
kke merged 1 commit into
mainfrom
package-level-examples
Jun 1, 2026
Merged

kke merged 1 commit into
mainfrom
package-level-examples

Conversation

@kke

@kke kke commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds package-level Go examples (example_test.go) that document and exercise common rig workflows (creating clients, executing commands, sudo usage, remote FS access, and injecting providers) via go test example execution.

Changes:

  • Added examples for creating a client (localhost) and basic command execution (Exec, ExecOutput, Proc).
  • Added examples demonstrating Sudo() usage and remote filesystem reads via Client.FS().
  • Added examples showing how to inject custom providers (OS release, remote FS, package manager, init system).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread example_test.go Resolved
Signed-off-by: Kimmo Lehto <klehto@mirantis.com>
@kke
kke force-pushed the package-level-examples branch from 1eb3b15 to 63d6664 Compare June 1, 2026 12:34
@kke
kke marked this pull request as ready for review June 1, 2026 12:35
@kke
kke merged commit ddb1237 into main Jun 1, 2026
11 checks passed
@kke
kke deleted the package-level-examples branch June 1, 2026 12:42
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