projtool.pl: add verify command
commit5ab4d79a705c818ee7da590032dba4bb751face9
authorKyle J. McKay <mackyle@gmail.com>
Fri, 2 Jul 2021 21:50:21 +0000 (2 14:50 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 2 Jul 2021 21:50:21 +0000 (2 14:50 -0700)
treeecb7f52478c58433923a3c63a4e841c058825377
parent7e1a3911688855910623e432719f29c95f56f023
projtool.pl: add verify command

Provide a verify command in much the same vein as Git's
`git rev-parse --verify` invocation.

When given a project name or path, resolve that to the actual
project, verify that it exists and can be loaded and then show its
canonical project name on standard out and exit with success.

Otherwise exit with an error code.  Diagnostic messages are shown
on standard error unless `--quiet` has been used.

The verify command provides a convenient way to take advantage of
the path-to-project translation facility from the command line.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
toolbox/projtool.pl