implemented "write-file" and "mkdir" ops

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba
2021-03-03 17:24:21 -08:00
parent f76e43d512
commit ee7bb3c3f5
3 changed files with 76 additions and 0 deletions

View File

@@ -92,6 +92,11 @@ func (v *Value) String() (string, error) {
return v.val.String()
}
// Proxy function to the underlying cue.Value
func (v *Value) Int64() (int64, error) {
return v.val.Int64()
}
func (v *Value) SourceUnsafe() string {
s, _ := v.SourceString()
return s