Sha256: 710ef1555ad8bf817e20c83534af109fbfe1bb356d1e72178f426bf37cb2d647
Contents?: true
Size: 802 Bytes
Versions: 8
Compression:
Stored size: 802 Bytes
Contents
module Alf module Shell class Help < Shell::Command() # Let NoSuchCommandError be passed to higher stage no_react_to Quickl::NoSuchCommand options do |opt| @dialect = :shell opt.on('--lispy', 'Display operator signatures in lispy DSL') do @dialect = :lispy end opt.on('--shell', 'Display operator signatures in shell DSL') do @dialect = :shell end end # Command execution def execute(args) sup = Quickl.super_command(self) sub = (args.size != 1) ? sup : Quickl.sub_command!(sup, args.first) doc = sub.documentation(:method => @dialect) puts doc end end # class Help end # module Shell end # module Alf
Version data entries
8 entries across 8 versions & 2 rubygems