Skip to content

Commit

Permalink
cli: add comments to exported api
Browse files Browse the repository at this point in the history
  • Loading branch information
sh0rez committed Aug 5, 2021
1 parent d4d119a commit cf782e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/pop/pop.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type Pop struct {
ctx *cue.Context
}

// New constructs a pop from a cue.Value
func New(v cue.Value) *Pop {
return &Pop{v: v, ctx: v.Context()}
}
Expand All @@ -40,6 +41,7 @@ func Load(path string) (*Pop, error) {
return New(v), nil
}

// Value returns the underlying cue.Value
func (p Pop) Value() cue.Value {
return p.v
}
Expand Down

0 comments on commit cf782e4

Please sign in to comment.