Implement closeAndPromote command. Use command line args to resolve a single repository