Skip to content

Commit

Permalink
feat: expose the lang.Scope type. (#2)
Browse files Browse the repository at this point in the history
Expose the `lang.Scope` type for manipulating Tofu functions.
  • Loading branch information
i4ki authored Aug 29, 2024
2 parents f8ca1b9 + 803725a commit 99b6e3e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/tfdiags/rpc_friendly.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright (c) Terramate GmbH
// SPDX-License-Identifier: MPL-2.0
// Copyright (c) The OpenTofu Authors
// SPDX-License-Identifier: MPL-2.0
// Copyright (c) 2023 HashiCorp, Inc.
Expand Down Expand Up @@ -65,5 +67,5 @@ func (d rpcFriendlyDiag) ExtraInfo() interface{} {
}

func init() {
gob.Register((*rpcFriendlyDiag)(nil))
gob.RegisterName("tfdiags.rpcFriendlyDiag", (*rpcFriendlyDiag)(nil))
}
9 changes: 9 additions & 0 deletions lang/public.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright (c) Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

package lang

import "github.com/terramate-io/opentofulib/internal/lang"

// Scope is an alias for the internal lang.Scope.
type Scope = lang.Scope

0 comments on commit 99b6e3e

Please sign in to comment.