blob: 3cff73d61ab4f0d375e9b50fdf6c54e1b9e0dbfa [file] [log] [blame]
# Verify that eval with --force works
# First time should simply succeed
cue eval -o eval.cue file.cue
cmp eval.cue eval.golden
# Second time will fail without --force
! cue eval -o eval.cue file.cue
stderr 'error writing "eval.cue": file already exists'
# Second time with --force should succeed
cue eval --force -o eval.cue file.cue
cmp eval.cue eval.golden
-- file.cue --
package hello
#who: "World"
message: "Hello \(#who)!"
-- eval.golden --
#who: "World"
message: "Hello World!"