[refactoring] use a top-level function in main
[refactoring] use a top-level function in main

This removes an unnecessary tab level in the app.Action function and makes
the main function more readable.

buchgr/bazel-remote,buchgr/bazel-remote