Sha256: 2c78c11aab572f06af9092b57cf184fd8621da9ca1ae2b147102d5f43832c106

Contents?: true

Size: 271 Bytes

Versions: 9

Compression:

Stored size: 271 Bytes

Contents

class Cody::CLI
  module Help
    class << self
      def text(namespaced_command)
        path = namespaced_command.to_s.gsub(':','/')
        path = File.expand_path("../help/#{path}.md", __FILE__)
        IO.read(path) if File.exist?(path)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cody-1.2.1 lib/cody/cli/help.rb
cody-1.1.0 lib/cody/cli/help.rb
cody-1.0.6 lib/cody/cli/help.rb
cody-1.0.5 lib/cody/cli/help.rb
cody-1.0.4 lib/cody/cli/help.rb
cody-1.0.3 lib/cody/cli/help.rb
cody-1.0.2 lib/cody/cli/help.rb
cody-1.0.1 lib/cody/cli/help.rb
cody-1.0.0 lib/cody/cli/help.rb