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