We plan to add a configuration file (see #16), until then I’d suggest you write a small shell script to call restic which adds the parameters and environment variables you need and call it restic:
#!/bin/bash
export RESTIC_REPOSITORY=/tmp/repo
export RESTIC_PASSWORD=foo
case "$1" in
jsnap)
shift;
/path/to/restic snapshots --json "$@"
;;
*)
/path/to/restic "$@"
;;
esac
We’re trying to keep the complexity implemented in restic under control, this reduces bugs and maintenance work. It feels to me that using the shell you can achieve what you want to do, so there’s no need to add this to restic.