Module: Branchtree::Context

Included in:
Branch, Branchtree::Commands::Common, Situation
Defined in:
lib/branchtree.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cmdObject



34
35
36
# File 'lib/branchtree.rb', line 34

def cmd
  @cmd ||= TTY::Command.new(printer: :null)
end

.promptObject



42
43
44
# File 'lib/branchtree.rb', line 42

def prompt
  @prompt ||= TTY::Prompt.new
end

.qcmdObject



38
39
40
# File 'lib/branchtree.rb', line 38

def qcmd
  @qcmd ||= TTY::Command.new(printer: :quiet)
end

Class Method Details

.loggerObject



46
47
48
# File 'lib/branchtree.rb', line 46

def logger
  @logger ||= TTY::Logger.new
end