func initCli(cliContext *cli.Context) error {
	logLevel := cliContext.String(LogLevelFlag.Name)
	level, err := logrus.ParseLevel(logLevel)
	if err != nil {
		return errors.WithStackTrace(err)
	}
	logging.SetGlobalLogLevel(level)
	return nil
}
initCli initializes the CLI app before any command is actually executed. This function will handle all the setup
code, such as setting up the logger with the appropriate log level.
package main
import (
	"github.com/gruntwork-io/git-xargs/cmd"
	"github.com/gruntwork-io/git-xargs/common"
	"github.com/gruntwork-io/go-commons/entrypoint"
	"github.com/gruntwork-io/go-commons/errors"
	"github.com/gruntwork-io/go-commons/logging"
	"github.com/sirupsen/logrus"
	"github.com/urfave/cli"
)
var VERSION string
var (
	LogLevelFlag = cli.StringFlag{
		Name:  "loglevel",
		Value: logrus.InfoLevel.String(),
	}
)