Class: Yap::Shell::UnknownCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/yap/shell/commands.rb

Constant Summary collapse

EXIT_CODE =
127

Instance Attribute Summary

Attributes inherited from Command

#args, #heredoc, #line, #str, #world

Instance Method Summary collapse

Methods inherited from Command

#initialize, #to_executable_str, #to_s

Constructor Details

This class inherits a constructor from Yap::Shell::Command

Instance Method Details

#execute(stdin:, stdout:, stderr:) ⇒ Object



80
81
82
83
# File 'lib/yap/shell/commands.rb', line 80

def execute(stdin:, stdout:, stderr:)
  stderr.puts "yap: command not found: #{str}"
  EXIT_CODE
end

#typeObject



85
86
87
# File 'lib/yap/shell/commands.rb', line 85

def type
  :BuiltinCommand
end