exec mkdir migrations

! atlas migrate diff --to file://1.hcl --dir file://migrations
stderr '"dev-url" not set'

! atlas migrate diff --dev-url sqlite://devdb --dir file://migrations
stderr '"to" not set'

atlas migrate diff --dev-url sqlite://devdb --to file://1.hcl --dir file://migrations
cmpmig 0 diff.sql
-- 1.hcl --
table "users" {
  schema = schema.main
  column "id" {
    null = false
    type = int
  }
}
schema "main" {
}
-- diff.sql --
-- Create "users" table
CREATE TABLE `users` (`id` int NOT NULL);