There are better ways to do this. I'm still learning.
I have a generic class to facilitate querying GitHub's REST and GraphQL APIs:
class GitHub
{
/**
* API
* Make request to GitHub using the standard REST API.
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\AlmaLinux9\mnt\wsl\repos\[REDACTED]\Terraform> terraform init | |
2024-06-14T15:46:03.588+0100 [INFO] Terraform version: 1.8.5 | |
2024-06-14T15:46:03.588+0100 [DEBUG] using github.com/hashicorp/go-tfe v1.51.0 | |
2024-06-14T15:46:03.588+0100 [DEBUG] using github.com/hashicorp/hcl/v2 v2.20.0 | |
2024-06-14T15:46:03.588+0100 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1 | |
2024-06-14T15:46:03.588+0100 [DEBUG] using github.com/zclconf/go-cty v1.14.3 | |
2024-06-14T15:46:03.589+0100 [INFO] Go runtime version: go1.22.1 | |
2024-06-14T15:46:03.589+0100 [INFO] CLI args: []string{"C:\\Commands\\terraform.exe", "init"} | |
2024-06-14T15:46:03.589+0100 [TRACE] Stdout is a terminal of width 236 | |
2024-06-14T15:46:03.589+0100 [TRACE] Stderr is a terminal of width 236 |
There are better ways to do this. I'm still learning.
I have a generic class to facilitate querying GitHub's REST and GraphQL APIs:
class GitHub
{
/**
* API
* Make request to GitHub using the standard REST API.
I hereby claim:
To claim this, I am signing this object: