module Rbnotes module Commands class Command def execute(args, conf) Builtins::DEFAULT_CMD.new.execute(args, conf) end end # Built-in commands: # - repo: prints the absolute path of the repository. # - conf: prints all of the current configuration settings. # - stamp: converts given TIME_STR into a timestamp. # - time: converts given STAMP into a time string. module Builtins class Help < Command def execute(_, _) puts < _ STDERR.puts "unknown command: #{cmd_name}" klass = Builtins::DEFAULT_CMD end end klass.new end end end end