Method: PGit::Command::Show#execute!

Defined in:
lib/pgit/command/show.rb

#execute!Object

Raises:



15
16
17
18
19
20
21
22
23
24
# File 'lib/pgit/command/show.rb', line 15

def execute!
  error_message = "No commands are listed for this project. Run `pgit cmd add --help` for more info."
  raise PGit::Error::User, error_message if commands.empty?

  if search.empty?
    show_all_of_current_project
  else
    show_one
  end
end