Class: GithubCLI::System

Inherits:
Object
  • Object
show all
Defined in:
lib/github_cli/system.rb

Overview

This class provides methods for reading system settings.

Class Method Summary collapse

Class Method Details

.command?(name) ⇒ Boolean

Checks if command exists.

Returns:

  • (Boolean)

7
8
9
# File 'lib/github_cli/system.rb', line 7

def self.command?(name)
  !TTY::Which.which(name).nil?
end