Try to refactor similar to gogits. Put separate command def into its own package. Versioning app, name