module GitWand::CLI::Command
Public Class Methods
perform(arguments:, client:)
click to toggle source
# File lib/git_wand/cli/command.rb, line 9 def self.perform(arguments:, client:) case arguments[:command] when :current_user_info CurrentUserInfo.perform(client: client) when :create_repository CreateRepository.perform(client: client, repository_name: arguments[:repository_name], private: arguments[:private]) when :delete_repository DeleteRepository.perform(client: client, repository_name: arguments[:repository_name]) else puts "Command `#{arguments[:command]}` is not recognized." exit 1 end end