Response (.rsp) Files

As grate is built on the System.CommandLine libraries it has built in support for Response (.rsp) files. These can be used to pass a standard set of command line arguments to the tool in lieu of a long command line.

For example, if you created a grate_settings.rsp file with the following content

# Custom RSP for a local development drop/create migration
-cs SomeConnectionString
-f ./db
--env DEV
--drop
--version 1.0
--ut=my_token=myvalue

and ran it via grate @./grate_settings.rsp it would be the equivalent to the following command:

grate -cs SomeConnectionString -f ./db --env DEV --drop --version 1.0 --ut=my_token=myvalue

Note that the @ before the file path is required.